Rusty Russell [Tue, 1 Apr 2003 11:47:14 +0000 (03:47 -0800)]
[PATCH] rio_linux.c misc_register patch
From: Chris Wilson <chris@qwirx.com>
This function did check misc_register's return code, but made no effort to
clean up if it failed, leaving a large amount of potential crud lying
around. I moved the registration to the start of the function, so that the
cleanup is trivial, and made sure the device gets unregistered in the
cases where it would not have been registered at all before.
Douglas Gilbert [Mon, 31 Mar 2003 08:52:21 +0000 (02:52 -0600)]
scsi_debug version 1.69 for lk 2.5.66
As people are using scsi_debug to simulate a large
number of disks to play with the dev_t expansion,
some problems have come to light.
Changelog:
- change num_devs to num_tgts
so now the user can independently modify the
number of hosts (add_host), the number of targets
per host (num_tgts) and the number of luns per
target (max_luns)
- num_tgts sets scsi_host::max_id after allowance is
made for the initiator's target id
- max_luns default changed to 1 and it is sysfs
writeable
- REPORT LUN response cleaned up. Could now possibly
generate a response indicatimg there were up to
16,384 logical units available
- clean up sense buffer generation
Jens Axboe [Mon, 31 Mar 2003 01:52:42 +0000 (17:52 -0800)]
[PATCH] scsi queueing weirdness
The queueing logic in scsi_lib looks really odd right now.
- Defers calling elv_next_request() until we actually think we can queue
something. Always want to do that, request will have been marked
REQ_STARTED after this, so block layer cannot touch it or merge to it.
- Kill the queue empty check. If elv_next_request() returned a req,
there's one to queue.
Russell King [Sun, 30 Mar 2003 10:14:49 +0000 (11:14 +0100)]
[PCMCIA] Reorganise SA11xx PCMCIA support.
The SA1100 PCMCIA structure didn't lend itself well to the device
model. With this reorganisation, we end up with a reasonable
structure which fits better with the driver model. It is now
obvious that SA11x0-based socket drivers are separate from
SA1111-based socket drivers, and are treated as two separate drivers
by the driver model.
Trying to read the overlong target of a /proc/*/fd/N file descriptor
leads to a SIGSEGV inside the kernel, because the code doesn't check
for an error pointer return from d_path.
Linus Torvalds [Sat, 29 Mar 2003 14:34:37 +0000 (06:34 -0800)]
Update direct-rendering to current DRI CVS tree.
This adds support for i830 interrupt handling, and new improved
lock context keying. See per-file comments for more detail, as this
commit sadly mixes up a few different things (that's what you get
for not tracking the changes at a fine enough granularity).
Jean Tourrilhes [Sat, 29 Mar 2003 04:41:15 +0000 (23:41 -0500)]
[PATCH] : Discovery locking fixes
o [CRITICA] Fix remaining locking problem with discovery log
o [CRITICA] Don't call expiry callback under spinlock
o [FEATURE] Simplify/cleanup/optimise discovery/expiry code
Martin J. Bligh [Fri, 28 Mar 2003 19:43:27 +0000 (14:43 -0500)]
[PATCH] remove warning for 3c509.c
Get this compile warning:
drivers/net/3c509.c:207: warning: `el3_device_remove' declared `static' but never defined
because the function definition is under
"#if defined(CONFIG_EISA) || defined(CONFIG_MCA)".
This patch puts the declaration under the same conditions.
I'd be shocked if it wasn't correct ;-)
Paul Mackerras [Fri, 28 Mar 2003 19:43:08 +0000 (14:43 -0500)]
[PATCH] MACE ethernet driver update
This patch updates the MACE ethernet driver, used on older powermacs,
to remove the uses of save_flags/restore_flags/cli/sti and use a
spinlock instead.
Adrian Bunk [Fri, 28 Mar 2003 19:42:29 +0000 (14:42 -0500)]
[PATCH] fix .text.exit error in drivers/net/r8169.c
In drivers/net/r8169.c the function rtl8169_remove_one is __devexit but
the pointer to it didn't use __devexit_p resulting in a.text.exit
compile error when !CONFIG_HOTPLUG.
Andrew Morton [Fri, 28 Mar 2003 11:20:19 +0000 (03:20 -0800)]
[PATCH] use page_to_pfn() in __blk_queue_bounce()
From: William Lee Irwin III <wli@holomorphy.com>
__blk_queue_bounce() contains an open-coded page_to_pfn() for the
discontig, non-MAP_NR_DENSE() case (wherever MAP_NR_DENSE() went).
This converts it to use the standard page_to_pfn() abstraction.
Andrew Morton [Fri, 28 Mar 2003 11:19:37 +0000 (03:19 -0800)]
[PATCH] x86 clock override boot option
From: john stultz <johnstul@us.ibm.com>
This patch allows one to manually specify the i386 gettimeofday time-source
by passing clock=[pit|tsc|cyclone|...] as a boot argument. The argument will
override the default probled selection, and in case the selected time-source
not be avalible the code defaults to using the PIT (printing a warning saying
so).
Andrew Morton [Fri, 28 Mar 2003 11:19:30 +0000 (03:19 -0800)]
[PATCH] wait_on_buffer refcounting checks
It is generally illegal to wait on an unpinned buffer - another CPU could
free it up even before __wait_on_buffer() has taken a ref against the buffer.
Maybe external locking rules will prevent this in specific cases, but that is
really subtle and fragile as locking rules are evolved.
The patch detects people calling wait_on_buffer() against an unpinned buffer
and issues a diagnostic.
Also remove the get_bh() from __wait_on_buffer(). It is too late.
Andrew Morton [Fri, 28 Mar 2003 11:19:09 +0000 (03:19 -0800)]
[PATCH] handle oom in tmpfs
From: Hugh Dickins <hugh@veritas.com>
move_from_swap_cache and add_to_page_cache_lru are using GFP_ATOMIC,
which can easily fail in an intermittent way. Rude if shmem_getpage
then fails with -ENOMEM: use blk_congestion_wait() to let kswapd in,
and repeat.
Andrew Morton [Fri, 28 Mar 2003 11:19:02 +0000 (03:19 -0800)]
[PATCH] tmpfs truncation fix
From: Hugh Dickins <hugh@veritas.com>
Recent testing has shown that swapoff can sneak a page back into the
tmpfs page cache after truncate_inode_pages has cleaned it, before
shmem_truncate resets next_index to stop that: BUG_ON(inode->i_blocks)
in shmem_delete_inode. So call truncate_inode_pages again to be safe.