What should be happening with the references to the discarded .text.exit
section? I see a __devexit_p mentioned in Documentation/pci.txt, but it
hasn't been implemented except for down inside ieee1394.
In any case, I need something like the following in order to build with
pre-release binutils 2.12. If this sort of thing is acceptible I can
prepare a more comprehensive patch.
David Mosberger [Mon, 11 Feb 2002 13:09:41 +0000 (05:09 -0800)]
[PATCH] video console fix up
Here is the last patch for today: it enables writecombined mappings
for ia64 in fbmem.c and gets rid of an ugly ia64 simulator workaround
in vgacon.c which isn't needed anymore.
David Mosberger [Mon, 11 Feb 2002 13:09:37 +0000 (05:09 -0800)]
[PATCH] fix for elf coredump deadlock
This patch fixes a deadlock condition in the elf core dump that shows
on ia64 because ELF_CORE_COPY_REGS() needs to access user space (to
get a hold of the backing store of the stacked registers). Marcelo
already accepted this into 2.4.17.
David Mosberger [Mon, 11 Feb 2002 13:09:34 +0000 (05:09 -0800)]
[PATCH] dma64_addr_t fix ups
This patch fixes up two places whre dma64_addr_t is used incorrectly.
Note that pci_dev->dma_mask and the second argument to
blk_queue_bounce_limit() are both u64, so the old types clearly are
wrong (besides, dma64_addr_t is supposed to be used only with the
pci_dac_*() routines, as per DaveM's earlier mail).
Rob Radez [Mon, 11 Feb 2002 13:09:30 +0000 (05:09 -0800)]
[PATCH] drivers/char/pcwd.c
This patch to drivers/char/pcwd.c against 2.5.4 does two things:
a) Makes one code snippet more consistent with the rest of the code, and
b) Makes it possible for this code to actually work
Nearly the same patch against 2.4 was reviewed by Alan, and, well, the
maintainer seems to have disappeared. It's also looking like no one uses
this driver much either.
Jens Axboe [Mon, 11 Feb 2002 13:38:30 +0000 (14:38 +0100)]
Remove nr_sectors from bio_end_io end I/O callback. It was a relic
from when completion was potentially called more than once to indicate
partial end I/O. These days bio->bi_end_io is _only_ called when I/O
has completed on the entire bio.
Robert Love [Mon, 11 Feb 2002 12:41:33 +0000 (04:41 -0800)]
[PATCH] Optimized UP preempt fix
I previously sent a patch by Mikael Pettersson to fix the UP+preempt
problem. It seems from your BK repository you have not yet merged it;
if so, this patch takes a different approach which is optimal, removing
the unneeded conditional altogether in the UP case. I have verified UP
and SMP are now correct. Patch is against 2.5.4, please apply.
Stephen Rothwell [Mon, 11 Feb 2002 12:32:46 +0000 (04:32 -0800)]
[PATCH] 2.5.4-pre6 apm compile fix
Here is the patch against 2.5.4. I have compiled this patch under
2.5.3, so it should still be OK.
This patch just resyncs the driver with 2.4.18-pre (which is what is
being testd by others). The only outstanding known problem is some
very strange interaction with VMWARE. But otherwise people seem
happy with the changes.
Original announcement to Dave Jones and Marcelo:
Update a couple of email addresses
Fix the idle handling (this is an improved version of the fix
that Alan Cox has in his -ac tree)
Notify user mode of suspend events before drivers (fix)
Make the idling percentage boot time configurable
Rename kapm-idled to kapmd
Credit to Andreas Steinmetz, Russell King, Thomas Hood and me.
More small updates to come.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
Jens Axboe [Mon, 11 Feb 2002 10:39:44 +0000 (11:39 +0100)]
Replace calls to suser() with capable(). Move those checks to be
as late as possible to avoid accounting overcharging processes with
privilege usage. Applies to 2.5.4-pre3
-- steve.cameron@compaq.com
Jens Axboe [Mon, 11 Feb 2002 10:33:09 +0000 (11:33 +0100)]
This patch fixes a bug that appears when you have more than 16 physical
LUNs attached to a cciss controller, and a tape drive is beyond the 16th
LUN. In such a case, the tape drive would not be accessible without this
patch. Applies to 2.5.4-pre3. -- steve.cameron@compaq.com
Robert Love [Sun, 10 Feb 2002 04:59:32 +0000 (20:59 -0800)]
[PATCH] preemptible kernel documentation, etc
Linus,
The attached patch adds a Documentation/preempt-locking.txt file which
describes the new locking rules wrt preemptive kernels (ie, watch
per-CPU data, etc). It also updates a CREDITS entry and adds some
comments.
Robert Love [Sun, 10 Feb 2002 04:58:05 +0000 (20:58 -0800)]
[PATCH] yet another lseek fix
Another lseek fix, spotted by Dave Hansen @ IBM. Missing a
corresponding lock_kernel for an unlock_kernel. Patch against
2.5.4-pre5, please apply. Thanks,
James Bottomley [Sat, 9 Feb 2002 16:23:57 +0000 (11:23 -0500)]
Various bugfixes to sync with 2.4 version:
- Fix bug in scripts that was causing CDRW hang
- add sense buffer length initialisation
- update lasi700 to new driver model and fix rmmod hang
- add correct MCA reporting to D700 driver
Alexander Viro [Sat, 9 Feb 2002 14:18:13 +0000 (06:18 -0800)]
[PATCH] affs cleanup
affs digs in blk_size[] to find the size of device (it
has its analog of superblock living in the middle of disk). That
information is available in ->s_bdev->bd_inode->i_size - no need
to mess with major/minor/arrays to get it.
Peter Osterlund [Sat, 9 Feb 2002 12:20:19 +0000 (04:20 -0800)]
[PATCH] Make cardbus device_register work
It compiles in -pre5 but doesn't work unless you also apply the patch
below. Without this patch, bus_id will be empty which makes
device_register fail.
Alexander Viro [Sat, 9 Feb 2002 03:27:14 +0000 (19:27 -0800)]
[PATCH] driverfs - preparation to fixes
Make dentry and ->i_sem manipulations in driverfs explicit. Something
is seriously rotten there and real fixes will take non-trivial work
(e.g, I suspect that we actually ought to kill driverfs_rename() - at
least cross-directory one for regular files, maybe completely). This
patch simply cleans the ground.
Alexander Viro [Sat, 9 Feb 2002 03:20:52 +0000 (19:20 -0800)]
[PATCH] ext2_new_block() cleanup
in ext2_new_block() inode->i_sb can't be NULL. Dead code removed.
merged returns in ext2_new_block()
in ext2_new_block() added a local variable (sbi) for sb->u.ext2_sb;
users converted.
calculation of prealloc_goal moved into beginning of function.
new local variable (block). Initialized to 0, set to the number of
allocated block only when we are known to be successful.
ext2_new_block() returns the value of 'block' now. As the result, out:
is gone - it's identical to out_unlock now.
check for block being chosen past the end of disk had been moved up No
sense to check that after we had done the preallocations...
quota allocation taken into the beginning of ext2_new_block(). we put
the number of blocks we'd reserved into dq_alloc and then decrement it
each time old code would do DQUOT_ALLOC/increment when it would do
DQUOT_FREE. On the exit we release dq_alloc blocks I.e. all
allocations are pushed into the beginning and all freeing - to the end.
now that we had moved the last possible point of failure up, we can do
the same with assignment of final result to block.
code that does allocation within a group had been taken out into a
helper - grab_block(map, size, goal).
decrementing fs-wide free blocks count moved into the beginning of
function. We try to reserve up to dq_alloc blocks - amount we _can_
grab is limited by the actual free space and root-reserved percentage.
That logics had been taken into a helper - reserve_blocks(sb, amount).
Number of blocks we had managed to reserve is put into es_alloc. When
we actually grab a block, es_alloc is decremented. Upon the exit we
release the leftovers. Old code didn't honor 'reserved for root' limit
when doing prealloc - now that had been fixed.
EXT2_BLOCKS_PER_GROUP(sb) put into a local variable (group_size)
similar "reserve and release leftovers in the end" scheme for group
(i.e. we try to reserve as much as we want in the group, then count how
much had been used up and release the leftovers in the end).
Alexander Viro [Sat, 9 Feb 2002 03:17:00 +0000 (19:17 -0800)]
[PATCH] (3/5) ext2_free_blocks() cleanup
new helper - group_release_blocks(desc, bh, count); updates free blocks
count for given group ext2_free_blocks now counts the blocks freed in
group and updates the per-group free blocks count at once.
Alexander Viro [Sat, 9 Feb 2002 03:16:52 +0000 (19:16 -0800)]
[PATCH] (1/5) ext2_free_blocks() cleanup
new helper function - release_blocks(sb, n); in ext2_free_blocks() we
count the blocks we'd freed and update the fs-wide count of free blocks
in the end - just before unlocking superblock. instead of doing that
step at a time.
Robert Love [Sat, 9 Feb 2002 03:11:35 +0000 (19:11 -0800)]
[PATCH] Re: [PATCH] Preemptible Kernel for 2.5
On Sat, 2002-02-09 at 01:43, Linus Torvalds wrote:
> That will clean up all your issues with header file ordering.
You are right, it did. I removed all the sched.h dependencies and this
reduced the size of the patch greatly. I now use current_thread_info()
and none of the header or include hackery from before. I've tested this
with and without preemption enabled with success.
I appreciate your help with this.
Again, this is a minimal i386-only patch. I have other arches,
documentation, etc. Patch against 2.5.4-pre5. Enjoy,