When zapping the thread list due to an execve(), make sure to
also detach the threads.
Otherwise we'll leave them around as zombies, waiting for them
to be picked up by their parent. Which might be the execve()
thread itself, causing a deadlock.
[PATCH] Fix block layer bug handling of partial bvec completion
Noted by Sean Estabrooks:
There is a bug in "ll_rw_blk.c" handling partial bvec submissions.
For whatever reason the floppy driver was triggering it more than
other users (most likely because most other devices tend to be able
to always complete a full request in one go).
Fixed by updating the proper bio vector index entry.
This updates the valkyriefb driver to the new API.
From Paul Mackerras <paulus@samba.org>:
"It compiles OK, but I haven't been able to test it. I have simplified
the driver quite a bit using the knowledge that there can only ever be
one valkyrie graphics adaptor in a system - it is the built-in
graphics adaptor on various ancient mac and powermac machines, and we
access it at a hard-coded address, so we can only handle one."
Ville Herva [Sat, 26 Jul 2003 03:49:26 +0000 (20:49 -0700)]
[PATCH] NMI watchdog documentation
Documentation/nmi-watchdoc.txt doesn't actually tell what options need to be
enabled in kernel config in order to use NMI watchdog. I for one found it
confusing.
Rename ariadne2 to zorro8390, since this driver supports several NS8390-based
Zorro Ethernet cards. Kill all never used occurrencies of CONFIG_NE2K_ZORRO.
m68k page updates (from Roman Zippel):
- Set _PAGE_RONLY bit and clear _PAGE_PRESENT to mark PAGE_NONE pte entries
(this also makes PAGE_NONE fixup unnecessary)
- Move _PAGE_FILE to a lower, so pte_to_pgoff/pgoff_to_pte becomes simpler
NCR53C9x: Remove unused initialization of SCp.have_data_in (from Maciej W.
Rozycki). This affects the following drivers:
- DECstation SCSI
- Amiga Oktagon SCSI
[PATCH] M68k show_stack() portability and cleanup patch
M68k: show_stack() portability and cleanup patch:
- Add a task pointer argument to show_stack() and pass NULL as the first
argument where needed
- Remove show_trace_task()
This fixes filename case handling in vfat_revalidate():
before:
# mount -t vfat /dev/hda6 /mnt -o shortname=winnt
# cd /mnt
# cat File.Txt # make negative dentry
cat: File.Txt: No such file or directory
# touch file.txt # match negative dentry
# ls
File.Txt
after:
# mount -t vfat /dev/hda6 /mnt -o shortname=winnt
# cd /mnt
# cat File.Txt # make negative dentry
cat: File.Txt: No such file or directory
# touch file.txt # match negative dentry
# ls
file.txt
Jim Howard [Fri, 25 Jul 2003 09:02:34 +0000 (02:02 -0700)]
[PATCH] IDE driver VIA support (obscure bug)
This fixes a *very* obscure bug, which only applies to VIA chipsets that
support UDMA-133 mode, and which is only known to be tickled by one
UDMA-66 hard drive (Maxtor 91360U4) that happens to report 80-wire cable
detection opposite to the ATA standard.
The bug appears in a test to see how the BIOS set up UDMA timing. This
test is only reached when the drive says 80-wire *and* the chipset says
40-wire (which is only known to happen with this drive).
The timing bits that are checked represent clocks T minus 2, i.e., ((N -
2) * T). But Vojtech forgot to subtract 2, and applied N = 8 rather
than N = 6 in the test. Since the test masks the bits at 7, they are
always less than 8, and the test always succeeds, even though the BIOS
set UDMA-33.
Sam Ravnborg [Fri, 25 Jul 2003 09:00:12 +0000 (02:00 -0700)]
[PATCH] usr/: Updated .incbin support
Update support for .incbin in /usr. No longer generate .S files
from within the Makefile.
Also deleted the assignment to LDFLAGS_BLOB for most architectures.
I did not touch ARM and cris:
arm: Russell told me they did not have a new as that could be used
cris: Looked like it was used for more than just usr/
Sam Ravnborg [Fri, 25 Jul 2003 09:00:05 +0000 (02:00 -0700)]
[PATCH] fs/ Makefile cleanup
Simplify Makefiles in fs/ by utilising the new syntax for composite
objects. The new syntax allowed a couple of ifeq ($(CONFIG_FOO),y)
to be deleted, resulting in more readable Makefiles.
Roman Zippel [Fri, 25 Jul 2003 08:50:07 +0000 (01:50 -0700)]
[PATCH] Optional choice values get reset
Patch by Herbert Xu <herbert@gondor.apana.org.au>:
As of 2.5.74, make oldconfig always disables existing optional choices
even if they were selected previously. For example, if all the EICON
ISDN drivers were selected as modules, then make oldconfig will turn
them off.
Part of the problem is that the choice value itself is computed before
the SYMBOL_NEW flag is turned off. This patch addresses that particular
problem.
Krzysztof Halasa [Fri, 25 Jul 2003 08:24:04 +0000 (01:24 -0700)]
[PATCH] HDLC update
This updates generic HDLC from 1.14 to 1.15.
- fix a kernel panic caused by a recent change to unregister_netdevice()
(struct net_device * can't be kfreed before rtnl_unlock())
- adds carrier_* support - hw drivers report DCD status and higher level
protocols use that info, and do netif_carrier_{on,off}() according to
DCD and (Cisco and FR) link management status.
- moves Frame-Relay constants etc. from include/linux/hdlc.h to hdlc_fr.c.
They are internal FR things and are not needed in the global header.
- protocol hooks are slighty changed to allow zeroing (memset).
- removes CONFIG_HDLC_DEBUG_* variables. Users tend to make very wrong
use of them. Now setting them requires changing .c #define. Anyway they
are development-only things.
- misc style corrections etc.
Patrick McHardy [Fri, 25 Jul 2003 08:15:50 +0000 (01:15 -0700)]
[NETFILTER]: Fix various problems with MIRROR target.
- check TTL before rewriting so icmp_send gets clean packet
- skb_copy_expand(skb) for tcpdump and asymmetric routing
- inline some function
- remove unneccessary struct in_device declaration
- remove RTO_CONN
Forward-port of 2.4.21-ac4 patch by Wilfried Weissmann.
ide_get_or_set_dma_base() may be called via ide_setup_pci_device()
when a PCI controller module is loaded. However, it is defined with __init
and the function is called when its memory is already deallocated.
Ben Collins [Fri, 25 Jul 2003 07:40:53 +0000 (00:40 -0700)]
[PATCH] Update IEEE1394 (r1014)
misc: - Consolidate and make consistent, the NODE_BUS_{FMT,ARGS}
macros.
- Add HPSB_VERBOSE() macro to make VERBOSEDEBUG code a
little cleaner.
ieee1394 : - Replace panic() with BUG and return value in dma routine.
- Reset reset_retries on success or loop recover.
- Add RECV_FLUSH to flush buffers on > 1 irq interval or in
buffer-fill mode.
- Probe logic-unit-subdirectories as children of the
unit-dir.
- Fix compile warning in nodemgr thread.
- Replace tightly scheduled timeout loop with a 50ms timer.
- Better return and usage of BUG_ON() in dma handler.
- Calculate timeout expiry interval at change instead of at
every timeout check.
SBP2 : - Fix logical-unit-directory LUN's.
- Remove procfs interface.
- Fix usage of initdata after init.
Host con : - Change irq output to use __irq_itoa() for sparc.
- Do more to notify bus when module is unloaded, to clear
IRM, etc.
ohci1394 : Fix endianess of async stream packet headers.