]> git.hungrycats.org Git - linux/log
linux
23 years ago[PATCH] janitor: scsi ioctl error handling
Randy Dunlap [Thu, 14 Aug 2003 18:26:35 +0000 (11:26 -0700)]
[PATCH] janitor: scsi ioctl error handling

From: Daniele Bellucci <bellucda@tiscali.it>

23 years ago[PATCH] janitor: scsi/qlogicfc error handling
Randy Dunlap [Thu, 14 Aug 2003 18:26:27 +0000 (11:26 -0700)]
[PATCH] janitor: scsi/qlogicfc error handling

From: Leann Ogasawara <ogasawara@osdl.org>

23 years ago[PATCH] janitor: scsi/gdth error handling
Randy Dunlap [Thu, 14 Aug 2003 18:26:19 +0000 (11:26 -0700)]
[PATCH] janitor: scsi/gdth error handling

From: Daniele Bellucci <bellucda@tiscali.it>

23 years ago[PATCH] More timer race fixes
Ingo Molnar [Thu, 14 Aug 2003 18:26:03 +0000 (11:26 -0700)]
[PATCH] More timer race fixes

Patch from Julie DeWandel.

This patch has solved the crashes observed during TPC-C runs on the
16-way box.  (I'm confident it will fix the other reported cases as
well.)

The race is the setting of timer->base to NULL, by del_timer() or
__run_timers().  If new_base == old_base in __mod_timer() then we do not
re-check timer->base after getting the lock.  (the only case where we do
not have to re-check the base is in the !old_base case, but the else
branch also includes the old_base==new_base case.)

The __run_timers() case made the lock_timer() patch not work fully - we
cannot use lock_timer() in __run_timers() due to lock ordering.

23 years agoDon't add noisy "deprecated" things to PM.
Linus Torvalds [Thu, 14 Aug 2003 18:15:27 +0000 (11:15 -0700)]
Don't add noisy "deprecated" things to PM.

23 years agoMerge bk://kernel.bkbits.net//home/mochel/linux-2.5-power
Linus Torvalds [Thu, 14 Aug 2003 17:52:23 +0000 (10:52 -0700)]
Merge bk://kernel.bkbits.net//home/mochel/linux-2.5-power
into home.osdl.org:/home/torvalds/v2.5/linux

23 years agoMerge bk://kernel.bkbits.net//home/mochel/linux-2.5-core
Linus Torvalds [Thu, 14 Aug 2003 17:51:46 +0000 (10:51 -0700)]
Merge bk://kernel.bkbits.net//home/mochel/linux-2.5-core
into home.osdl.org:/home/torvalds/v2.5/linux

23 years agoMerge bk://kernel.bkbits.net/davem/net-2.5
Linus Torvalds [Thu, 14 Aug 2003 17:41:46 +0000 (10:41 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

23 years agoMerge bk://kernel.bkbits.net/davem/sparc-2.5
Linus Torvalds [Thu, 14 Aug 2003 17:40:58 +0000 (10:40 -0700)]
Merge bk://kernel.bkbits.net/davem/sparc-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

23 years ago[PATCH] Add SELinux entry to MAINTAINERS
Andrew Morton [Thu, 14 Aug 2003 17:25:36 +0000 (10:25 -0700)]
[PATCH] Add SELinux entry to MAINTAINERS

From: Stephen Smalley <sds@epoch.ncsc.mil>

This patch adds a SELINUX entry to the MAINTAINERS file.

23 years ago[PATCH] SELinux inode security init
Andrew Morton [Thu, 14 Aug 2003 17:25:29 +0000 (10:25 -0700)]
[PATCH] SELinux inode security init

From: Stephen Smalley <sds@epoch.ncsc.mil>

This patch reworks the SELinux module code that handles inodes initialized
before the policy is initially loaded to also cover the case where a pseudo
filesystem such as selinuxfs or nfsd directly populate themselves.

The list of inode security structures is split into per-superblock lists
associated with each superblock security structure, and the initialization
is performed by superblock_doinit.

23 years ago[PATCH] opl3 use-after-free fix
Andrew Morton [Thu, 14 Aug 2003 17:25:21 +0000 (10:25 -0700)]
[PATCH] opl3 use-after-free fix

From: Shawn Starr <spstarr@sh0n.net>

opl3 use-after-free fix

23 years ago[PATCH] Docbook: Make mandocs output more terse
Andrew Morton [Thu, 14 Aug 2003 17:25:14 +0000 (10:25 -0700)]
[PATCH] Docbook: Make mandocs output more terse

From: Michael Still <mikal@stillhq.com>

This patch takes into account requests from various LKML members for the
mandocs output to be more terse.  Information about the copyright, and
formatting of the man page is moved into a comment at the start of the
groff output.

Sample output can be found at:
  http://www.stillhq.com/linux/mandocs/2.6.0-test3-bk1/

23 years ago[PATCH] uinput oops and panic fix
Andrew Morton [Thu, 14 Aug 2003 17:25:07 +0000 (10:25 -0700)]
[PATCH] uinput oops and panic fix

From: Aristeu Sergio Rozanski Filho <aris@cathedrallabs.org>

verify maximum number of bits before using set_bit

23 years ago[PATCH] Use mark_page_accessed() in follow_page()
Andrew Morton [Thu, 14 Aug 2003 17:24:59 +0000 (10:24 -0700)]
[PATCH] Use mark_page_accessed() in follow_page()

Touching a page via follow_page() counts as a reference so we should be
either setting the referenced bit in the pte or running mark_page_accessed().

Altering the pte is tricky because we haven't implemented an atomic
pte_mkyoung().  And mark_page_accessed() is better anyway because it has more
aging state: it can move the page onto the active list.

23 years ago[PATCH] access_process_vm() needs to dirty the page
Andrew Morton [Thu, 14 Aug 2003 17:24:51 +0000 (10:24 -0700)]
[PATCH] access_process_vm() needs to dirty the page

If POKETEXT modifies the page it needs to tell the VM about it.

23 years ago[PATCH] dnotify documentation update
Andrew Morton [Thu, 14 Aug 2003 17:24:43 +0000 (10:24 -0700)]
[PATCH] dnotify documentation update

From: Stephen Rothwell <sfr@canb.auug.org.au>

Fix the dnotify documentation and code example to reflect reality.

23 years ago[PATCH] bugfix for initialization bug in adm1021 driver
Andrew Morton [Thu, 14 Aug 2003 17:24:35 +0000 (10:24 -0700)]
[PATCH] bugfix for initialization bug in adm1021 driver

From: Rusty Lynch <rusty@linux.co.intel.com>

While initializing the adm1021 device, the driver is performing a conversion
from fixed point to Celcius on values that were declaired as Celcius.  On my
Dell Precision 220 this results in a shutdown after a couple of minutes
running.

The latch simply removes the conversion.

23 years ago[PATCH] Better argument size tracking in fs/exec.c
Andrew Morton [Thu, 14 Aug 2003 17:24:28 +0000 (10:24 -0700)]
[PATCH] Better argument size tracking in fs/exec.c

From: Matthew Wilcox <willy@debian.org>

Introduce a new variable "arg_size" and set it appropriately in each arm of
the CONFIG_STACK_GROWSUP.  This patch fixes a bug for PA-RISC and makes the
code cleaner for everyone.

23 years ago[PATCH] Fix DAC960 oops
Andrew Morton [Thu, 14 Aug 2003 17:24:21 +0000 (10:24 -0700)]
[PATCH] Fix DAC960 oops

From: Dave Olien <dmo@osdl.org>

The dynamic queue allocation appears to have exposed a long-standing bug.

23 years ago[PATCH] nls Makefile fix
Andrew Morton [Thu, 14 Aug 2003 17:24:13 +0000 (10:24 -0700)]
[PATCH] nls Makefile fix

From: Todor Todorov <ttodorov@web.de>

A missig line fs/nls/Makefile prevents codepage 1250 from compiling and
installing whatever the .config value.

23 years ago[PATCH] Fix strncpy off-by-one error
Andrew Morton [Thu, 14 Aug 2003 17:24:05 +0000 (10:24 -0700)]
[PATCH] Fix strncpy off-by-one error

From: Yoshinori Sato <ysato@users.sourceforge.jp>

It writes one too many zeroes when nulling out the destination.

23 years ago[PATCH] Make 16-way x440's boot
Andrew Morton [Thu, 14 Aug 2003 17:23:58 +0000 (10:23 -0700)]
[PATCH] Make 16-way x440's boot

From: Matthew Dobson <colpatch@us.ibm.com>

16 proc x440 boxen aren't booting mainline kernels right now for many valid
configs.  This patch makes sure NUMA codepaths aren't executed for SMP
configs.  It also adds some sane error messages to the code, and cleans up
some #ifdefs.

23 years ago[PATCH] jffs statfs fix
Andrew Morton [Thu, 14 Aug 2003 17:23:51 +0000 (10:23 -0700)]
[PATCH] jffs statfs fix

From: Josh Boyer <jwboyer@charter.net>

jffs was missed in the statfs64 conversions.

23 years ago[PATCH] state request_firmware() maintainership.
Andrew Morton [Thu, 14 Aug 2003 17:23:44 +0000 (10:23 -0700)]
[PATCH] state request_firmware() maintainership.

From: Manuel Estrada Sainz <ranty@debian.org>

Add Manuel to MAINTAINERS for request_firmware().

23 years ago[PATCH] more documentation for request_firmware()
Andrew Morton [Thu, 14 Aug 2003 17:23:36 +0000 (10:23 -0700)]
[PATCH] more documentation for request_firmware()

From: Manuel Estrada Sainz <ranty@debian.org>

Add some higher level docs to Documentation/firmware_class/README.

23 years ago[PATCH] hugetlbfs - 'recovering' too many blocks on failure
Andrew Morton [Thu, 14 Aug 2003 17:23:29 +0000 (10:23 -0700)]
[PATCH] hugetlbfs - 'recovering' too many blocks on failure

From: Zwane Mwaikambo <zwane@linuxpower.ca>

The code appears to be able to add too many blocks back to
sbinfo->free_blocks in the failure path. We first do;

len = vma->vm_end - vma->vm_start;
sbinfo->free_blocks -= len;

but then later do;
len = (vma->vm_end - vma->vma_start) + (vma->vm_pgoff << HPAGE_SHIFT)

error:
sbinfo->free_blocks += len;

23 years ago[PATCH] ipmi_kcs_intf.c compile warning
Andrew Morton [Thu, 14 Aug 2003 17:23:22 +0000 (10:23 -0700)]
[PATCH] ipmi_kcs_intf.c compile warning

From: Zwane Mwaikambo <zwane@linuxpower.ca>

drivers/char/ipmi/ipmi_kcs_intf.c: In function `acpi_find_bmc':
drivers/char/ipmi/ipmi_kcs_intf.c:1088: warning: long unsigned int format, different type arg (arg 2)
drivers/char/ipmi/ipmi_kcs_intf.c:1088: warning: long unsigned int format, different type arg (arg 2)

23 years ago[PATCH] fix [un]likely(), add ptr support
Andrew Morton [Thu, 14 Aug 2003 17:23:15 +0000 (10:23 -0700)]
[PATCH] fix [un]likely(), add ptr support

From: Albert Cahalan <albert@users.sourceforge.net>

1. allows likely() and unlikely() to work for pointers

2. fixes likely() (in C, any non-zero value is true)

23 years ago[PATCH] keyboard.c warning fix
Andrew Morton [Thu, 14 Aug 2003 17:23:06 +0000 (10:23 -0700)]
[PATCH] keyboard.c warning fix

drivers/char/keyboard.c: In function `k_fn':
drivers/char/keyboard.c:665: warning: comparison is always true due
to limited range of data type

I didn't want to just delete the code because one day the size of func_table
may get smaller, or the type of `value' may get larger.  When that happens,
the test becomes valid again.

23 years ago[PATCH] kill warning in jbd/revoke.c
Andrew Morton [Thu, 14 Aug 2003 17:22:59 +0000 (10:22 -0700)]
[PATCH] kill warning in jbd/revoke.c

From: Peter Chubb <peterc@gelato.unsw.edu.au>

If you need a long long format, then cast to long long, not u64.  u64 is
long on 64-bit architectures.

23 years ago[PATCH] Kill warning in drivers/input/misc/uinput.c on IA64
Andrew Morton [Thu, 14 Aug 2003 17:22:52 +0000 (10:22 -0700)]
[PATCH] Kill warning in drivers/input/misc/uinput.c on IA64

From: Peter Chubb <peterc@gelato.unsw.edu.au>

Attached patch kills a warning when compiling on a 64-bit architecture
(ssize_t is long, not int)

23 years ago[PATCH] request_firmware fix
Andrew Morton [Thu, 14 Aug 2003 17:22:44 +0000 (10:22 -0700)]
[PATCH] request_firmware fix

From: Manuel Estrada Sainz <ranty@debian.org>

- undo recent change, made in the believe that "buffer" was the size of
  the whole file, it is just PAGE_SIZE in size.  This was causing kernel
  memory corruption.

  - Since files are allowed to have unknown sizes, by setting their
    size to 0, we can't preallocate a buffer of their size on open.

- Adapt request_firmware() to the sysfs change.

- Adapt drivers/pci/pci-sysfs.c to the sysfs change.

23 years ago[PATCH] loop oops fix
Andrew Morton [Thu, 14 Aug 2003 17:22:37 +0000 (10:22 -0700)]
[PATCH] loop oops fix

loop-on-file oopses during unmount.  This is because lo_queue is now freed
during lo_ioctl(LOOP_CLR_FD).  I think the scenario is:

1: umount(8) opens /dev/loop0

2: umount(8) runs lo_ioctl(LOOP_CLR_FD) (this frees the queue)

3: umount(8) closes the /dev/loop0 handle.  The blockdev layer syncs the
   blockdev, but its mapping->backing_dev_info now points into la-la-land.

We shouldn't be freeing the queue until all refs to it have gone away.  This
patch gives the queue the same lifetime as the controlling loop_device
itself.  It also makes the loop driver's queue appear in sysfs again.

It would be better to free the queue when the device is not in use, but I'm
not sure how we can hook into the blockdev layer to do that.

23 years ago[PATCH] Kill warning in minix filesystem on 64-bit archs
Andrew Morton [Thu, 14 Aug 2003 17:22:29 +0000 (10:22 -0700)]
[PATCH] Kill warning in minix filesystem on 64-bit archs

From: Peter Chubb <peterc@gelato.unsw.edu.au>

On 64-bit architectures, ino_t is int, not long, so the attached patch
is needed to prevent a warning.

23 years ago[PATCH] fix hugetlbfs slab corruption on umount
Andrew Morton [Thu, 14 Aug 2003 17:22:18 +0000 (10:22 -0700)]
[PATCH] fix hugetlbfs slab corruption on umount

From: Zwane Mwaikambo <zwane@linuxpower.ca>

hugetlbfs was accessing super_block->s_fs_info after free'ing it.  This was
because it was being free'd prematurely.  I have deferred free until
->put_super().  I have also removed hugetlbfs_kill_super since it now is
simply a kill_litter_super.

23 years ago[PATCH] fix typo in hd.c
Andrew Morton [Thu, 14 Aug 2003 17:22:03 +0000 (10:22 -0700)]
[PATCH] fix typo in hd.c

From: Adrian Bunk <bunk@fs.tum.de>

hd.c contains a typo

23 years ago[PATCH] Make MTRR init conform with recommended procedure
Andrew Morton [Thu, 14 Aug 2003 17:21:45 +0000 (10:21 -0700)]
[PATCH] Make MTRR init conform with recommended procedure

From: Zwane Mwaikambo <zwane@linuxpower.ca>

This is a patch to make the MTRR initialisation more conformant with what
is stated in volume 3 of (10-36 Memory Cache Control).  The most notable
change is entering the no-fill cache mode before clearing the PGE bit in
cr4.  Intel also states that we should do the cache flush via the cr3
register shuffle.  If there is a problem with the patch please don't
hesitate to beat me vigorously with a clue-by-four.

It has been tested on a 3x Pentium 133, 8x PIII Xeon 700, 1x Celeron 550 and 32x
PIII 500 NUMAQ (hardware courtesy of OSDL)

23 years ago[PATCH] floppy_init fix
Andrew Morton [Thu, 14 Aug 2003 17:21:28 +0000 (10:21 -0700)]
[PATCH] floppy_init fix

From: Andrey Borzenkov <arvidjaar@mail.ru>

The floppy driver doesn't remove /dev/floppy when floppy_init fails.

23 years ago[PATCH] _devfs_walk_path fix
Andrew Morton [Thu, 14 Aug 2003 17:21:10 +0000 (10:21 -0700)]
[PATCH] _devfs_walk_path fix

From: Andrey Borzenkov <arvidjaar@mail.ru>

_devfs_walk_path does not check if de it is about to scan is a directory.
Next step is spinlock on non-spinlock memory.  It requires either artificial
setup or really broken driver but fairly easy to reproduce once you know how.

It is likely to exist in 2.4 as well.

23 years ago[PATCH] devfs_mk_dir fix
Andrew Morton [Thu, 14 Aug 2003 17:20:48 +0000 (10:20 -0700)]
[PATCH] devfs_mk_dir fix

From: Andrey Borzenkov <arvidjaar@mail.ru>

devfs_mk_dir freed wrong de and incorrectly passed to devfsd already freed
de.  Besides it did not even check if entry found was actually directory.

23 years ago[PATCH] firmware loader requires hotplug
Andrew Morton [Thu, 14 Aug 2003 17:20:11 +0000 (10:20 -0700)]
[PATCH] firmware loader requires hotplug

From: Ramn Rey Vicente <ramon.rey@hispalinux.es>

Fix the config issue with the hotplug firmware loader.  The firmware loader
use hotplug, so this must be included as a dependency.

23 years ago[PATCH] handle old-style "root=" arguments
Andrew Morton [Thu, 14 Aug 2003 17:19:32 +0000 (10:19 -0700)]
[PATCH] handle old-style "root=" arguments

When we changed try_name() to handle new-style printable dev_t formatting we
broke lots of people's setups.  Lilo, grub, etc.

Fix that by trying new-style formatting first, then fall back to old-style.

People should generally use new-style %u:%u major:minor formatting in the
future.

23 years ago[PATCH] BUG fix for drivers/bluetooth/hci_usb.c
Andrew Morton [Thu, 14 Aug 2003 17:18:53 +0000 (10:18 -0700)]
[PATCH] BUG fix for drivers/bluetooth/hci_usb.c

From: Vinay K Nallamothu <vinay-rc@naturesoft.net>

The patch below fixes two pointer reference bugs (shows up as compile
time warnings given below) which wrongly take the address of "struct
usb_interface*".

drivers/bluetooth/hci_usb.c: In function `hci_usb_probe':
drivers/bluetooth/hci_usb.c:786: warning: assignment from incompatible pointer type
drivers/bluetooth/hci_usb.c:810: warning: assignment from incompatible pointer type

23 years ago[PATCH] fix ide-scsi for ide_drive_t->queue change
Andrew Morton [Thu, 14 Aug 2003 17:18:13 +0000 (10:18 -0700)]
[PATCH] fix ide-scsi for ide_drive_t->queue change

From: Mikael Pettersson <mikpe@csd.uu.se>

This patch fixes ide-scsi.c for the ide_drive_t->queue type change
in 2.6.0-test3.

Without the patch you'll get these new warnings in -test3:

drivers/scsi/ide-scsi.c: In function `idescsi_abort':
drivers/scsi/ide-scsi.c:875: warning: passing arg 1 of `elv_queue_empty' from incompatible pointer type
drivers/scsi/ide-scsi.c: In function `idescsi_reset':
drivers/scsi/ide-scsi.c:902: warning: passing arg 1 of `elv_next_request' from incompatible pointer type

23 years ago[PATCH] probe UDF after reiserfs
Andrew Morton [Thu, 14 Aug 2003 17:17:34 +0000 (10:17 -0700)]
[PATCH] probe UDF after reiserfs

Bug 1065 (http://bugme.osdl.org/show_bug.cgi?id=1065) points out that there
is a risk that UDF will accidentally mount a reiserfs partition, which would
prevent a successful boot.

Andries points out that probing is unreliable and that users/admins should
always specify the root filesystem type on the kernel boot command line with
"rootfstype=resierfs".

But nobody does that, so we should be trying reiserfs before UDF.

23 years ago[PATCH] fix task struct refcount bug
Andrew Morton [Thu, 14 Aug 2003 17:16:41 +0000 (10:16 -0700)]
[PATCH] fix task struct refcount bug

From: Manfred Spraul <manfred@colorfullife.com>

(We think this might be the mystery bug which has been hanging about for
months)

We found a [the?] task struct refcount error: A task that dies sets
tsk->state to TASK_ZOMBIE.  The next scheduled task checks prev->state, and
if it's ZOMBIE, then it decrements the reference count of prev.  The
prev->state & _ZOMBIE test is not atomic with schedule, thus if prev is
scheduled again and dies between dropping the runqueue lock and checking
prev->state, then the reference it dropped twice.

This is possible with either preemption [schedule_tail is called by
ret_from_fork with preemption count 1, finish_arch_switch drops it to 0] or
profiling [profile_exit_mmap can sleep on profile_rwsem, called by
mmdrop()] enabled.

23 years ago[PATCH] vt_ioctl warning fixes
Andrew Morton [Thu, 14 Aug 2003 17:15:53 +0000 (10:15 -0700)]
[PATCH] vt_ioctl warning fixes

Several comparisons which can never be true because they're comparing u8's
with numbers which are greater than 255.

23 years ago[PATCH] /proc/net/pnp oops fix
Andrew Morton [Thu, 14 Aug 2003 17:15:00 +0000 (10:15 -0700)]
[PATCH] /proc/net/pnp oops fix

ic_servaddr is accessible after boot via /proc/net/pnp.  So it cannot be
__initdata.

davej says that other varibles there are treated the same way, so move them
all into the regular data section.

23 years ago[PATCH] nbd: fix send/receive/shutdown/disconnect races
Andrew Morton [Thu, 14 Aug 2003 17:14:02 +0000 (10:14 -0700)]
[PATCH] nbd: fix send/receive/shutdown/disconnect races

From: Paul Clements <Paul.Clements@SteelEye.com>

Here's the updated patch to fix several race conditions in nbd. It
requires reverting the already included (but incomplete)
nbd-race-fix.patch that's in -mm5.

This patch fixes the following race conditions:

1) adds an increment of req->ref_count to eliminate races between
do_nbd_request and nbd_end_request, which resulted in the freeing of
in-use requests -- there were races between send/receive, send/shutdown
(killall -9 nbd-client), and send/disconnect (nbd-client -d), which are
now all fixed

2) adds locking and properly orders the code in NBD_CLEAR_SOCK to
eliminate races with other code

3) adds an lo->sock check to nbd_clear_que to eliminate races between
do_nbd_request and nbd_clear_que, which resulted in the dequeuing of
active requests

4) adds an lo->sock check to NBD_DO_IT to eliminate races with
NBD_CLEAR_SOCK, which caused an Oops when "nbd-client -d" was called

23 years ago[PATCH] Set up P4 thermal interrupt vector on UP
Andrew Morton [Thu, 14 Aug 2003 17:13:03 +0000 (10:13 -0700)]
[PATCH] Set up P4 thermal interrupt vector on UP

From: Zwane Mwaikambo <zwane@arm.linux.org.uk>

The P4 thermal interrupt vector was only getting set on SMP builds.

23 years ago[PATCH] reiserfs: Fix handling of some extended inode
Andrew Morton [Thu, 14 Aug 2003 17:11:42 +0000 (10:11 -0700)]
[PATCH] reiserfs: Fix handling of some extended inode

From: Oleg Drokin <green@namesys.com>

This patch fixes a problem in reiserfs' handling of immutable attribute,
where every user (not just root) can unset it.  Also it adds "append-only"
attribute "support" (all the support is in VFS anyway, we only recognise the
bit now).  Also misleading comment in reiserfs_fs.h is removed.

23 years ago[PATCH] reiserfs: remove unneeded kunmap
Andrew Morton [Thu, 14 Aug 2003 17:10:37 +0000 (10:10 -0700)]
[PATCH] reiserfs: remove unneeded kunmap

From: Oleg Drokin <green@namesys.com>

There is a leftover kunmap in reiserfs_unprepare_pages() which was not
deleted after conversion to kmap_atomic.  This path is virtually never
executed, that's why it was not caught earlier.  Please apply.

23 years ago[PATCH] pipe.c: don't write to readonly filesystems
Andrew Morton [Thu, 14 Aug 2003 17:09:58 +0000 (10:09 -0700)]
[PATCH] pipe.c: don't write to readonly filesystems

The pipe code's mtime and ctime updates are causing writes to read-only
mounted filesystems.

Fix that up by teaching inode_update_time() to honour readonly mounts, and
call it from the pipe code.

23 years ago[PATCH] standalone elevator noop
Andrew Morton [Thu, 14 Aug 2003 17:09:14 +0000 (10:09 -0700)]
[PATCH] standalone elevator noop

From: Nick Piggin <piggin@cyberone.com.au>

Following patch seperates elevator noop, and allows it to be treated
like the other schedulers.

23 years ago[PATCH] AS requeue implementation
Andrew Morton [Thu, 14 Aug 2003 17:08:33 +0000 (10:08 -0700)]
[PATCH] AS requeue implementation

From: Mark Haverkamp <markh@osdl.org>

Properly implement elevator_t..elevator_requeue_req_fn for the anticipatory
scheduler.

This fixes some rarely-occurring oops in the IO scheduler.

23 years ago[PATCH] AS: no trinary states
Andrew Morton [Thu, 14 Aug 2003 17:07:57 +0000 (10:07 -0700)]
[PATCH] AS: no trinary states

From: Nick Piggin <piggin@cyberone.com.au>

Gets rid of the silly (and undocumented) trinary stateness of
ad->changed_batch.

Kernel style flags field could now save 20 bytes per asd (request queue) and
4 per arq.  But I figure that change can wait until I do autotuning...

23 years ago[PATCH] AS: remove hash valid stuff
Andrew Morton [Thu, 14 Aug 2003 17:07:26 +0000 (10:07 -0700)]
[PATCH] AS: remove hash valid stuff

From: Nick Piggin <piggin@cyberone.com.au>

The crazy HASH_VALID stuff now makes no difference now.  It was there to
try to enforce no merging over a barrier, but it turned out that requests
can just be reordered.  Jens picked this up a a while ago and fixed
deadline (and I AS) by simply dispatching all reqs on the queue on
encountering a barrier.  The hash valid stuff didn't get cleaned up.

23 years ago[PATCH] timer race fixes
Andrew Morton [Thu, 14 Aug 2003 17:07:00 +0000 (10:07 -0700)]
[PATCH] timer race fixes

From: Ingo Molnar <mingo@elte.hu>

It unifies the functionality of add_timer() and mod_timer(), and makes any
combination of the timer API calls completely SMP-safe.  del_timer() is still
not using the timer lock.

this patch fixes the only timer bug in 2.6 i'm aware of: the del_timer_sync()
+ add_timer() combination in kernel/itimer.c is buggy.  This was correct code
in 2.4, because there it was safe to do an add_timer() from the timer handler
itself, parallel to a del_timer_sync().

If we want to make this safe in 2.6 too (which i think we want to) then we
have to make add_timer() almost equivalent to mod_timer(), locking-wise.  And
once we are at this point i think it's much cleaner to actually make
add_timer() a variant of mod_timer().  (There's no locking cost for
add_timer(), only the cost of an extra branch.  And we've removed another
commonly used function from the icache.)

23 years ago[PATCH] missing #if for 1000 HZ
Andrew Morton [Thu, 14 Aug 2003 17:06:36 +0000 (10:06 -0700)]
[PATCH] missing #if for 1000 HZ

From: Albert Cahalan <albert@users.sourceforge.net>

This should improve timekeeping a bit @ 1000 HZ.

23 years ago[PATCH] Fix raid "bio too big" failures
Andrew Morton [Thu, 14 Aug 2003 17:06:18 +0000 (10:06 -0700)]
[PATCH] Fix raid "bio too big" failures

From: Neil Brown <neilb@cse.unsw.edu.au>

Fix "bio too big" problem with md

Whenever a device is attached to an md device, we make sure the sector
limits of the md device do not exceed those of the added device.

23 years ago[PATCH] sys_fadvise64_64
Andrew Morton [Thu, 14 Aug 2003 17:06:03 +0000 (10:06 -0700)]
[PATCH] sys_fadvise64_64

Alas, both POSIX and I got the fadvise() interface wrong.  It needs to take a
64-bit length, not a 32-bit one.  Because fadvise(POSIX_FADV_DONTNEED) on a
4TB file will require 1000 syscalls.  Silly.

There are glibc's in the wild which use the existing syscall, so we must
make a new one.

23 years ago[PATCH] fadvise(POSIX_FADV_DONTNEED) fix
Andrew Morton [Thu, 14 Aug 2003 17:05:55 +0000 (10:05 -0700)]
[PATCH] fadvise(POSIX_FADV_DONTNEED) fix

invalidate_mapping_pages() takes start/end, but fadvise is currently passing
it start/len.

23 years ago[NET]: Convert YAM driver to seq_file.
Stephen Hemminger [Thu, 14 Aug 2003 14:26:37 +0000 (07:26 -0700)]
[NET]: Convert YAM driver to seq_file.

23 years ago[NET]: Convert YAM driver to dynamic net_device.
Stephen Hemminger [Thu, 14 Aug 2003 14:25:53 +0000 (07:25 -0700)]
[NET]: Convert YAM driver to dynamic net_device.

23 years ago[NETROM]: Fix use after free in socket close.
Stephen Hemminger [Thu, 14 Aug 2003 14:17:14 +0000 (07:17 -0700)]
[NETROM]: Fix use after free in socket close.

netrom would oops if one did:
modprobe netrom
ifconfig -a

because the code in destroy was freeing the socket then release_sock was
called.

23 years ago[NETROM]: Convert /proc interface to seq_file.
Stephen Hemminger [Thu, 14 Aug 2003 14:15:59 +0000 (07:15 -0700)]
[NETROM]: Convert /proc interface to seq_file.

23 years ago[NETROM]: Convert to alloc_netdev().
Stephen Hemminger [Thu, 14 Aug 2003 14:15:18 +0000 (07:15 -0700)]
[NETROM]: Convert to alloc_netdev().

Convert net_device's from array of structures to an array
of pointers, so they can be freed individually on module
exit.  The net_device_stats are stored at dev->priv.

23 years ago[NETROM]: Make lists and locks static since they are only used in one file.
Stephen Hemminger [Thu, 14 Aug 2003 14:13:55 +0000 (07:13 -0700)]
[NETROM]: Make lists and locks static since they are only used in one file.

23 years ago[NETROM]: Use hlist for the routing table information.
Jeroen Vreeken [Thu, 14 Aug 2003 14:12:29 +0000 (07:12 -0700)]
[NETROM]: Use hlist for the routing table information.

Note: there is a call to ax25_cb_put commented out, that
can be added back when ax25 refcount patches go in.

23 years ago[NETROM]: Better control over the AX25 devices.
Jeroen Vreeken [Thu, 14 Aug 2003 14:11:38 +0000 (07:11 -0700)]
[NETROM]: Better control over the AX25 devices.

23 years ago[NETROM]: Lock sockets while doing protocol processing.
Jeroen Vreeken [Thu, 14 Aug 2003 14:10:20 +0000 (07:10 -0700)]
[NETROM]: Lock sockets while doing protocol processing.

23 years ago[NETROM]: Reserve space in socket header for AX25 header.
Jeroen Vreeken [Thu, 14 Aug 2003 14:08:53 +0000 (07:08 -0700)]
[NETROM]: Reserve space in socket header for AX25 header.

23 years ago[NETROM]: Free buffers in write queue on socket destroy.
Jeroen Vreeken [Thu, 14 Aug 2003 14:07:25 +0000 (07:07 -0700)]
[NETROM]: Free buffers in write queue on socket destroy.

23 years ago[NETROM]: Expire sockets faster on close.
Jeroen Vreeken [Thu, 14 Aug 2003 14:06:09 +0000 (07:06 -0700)]
[NETROM]: Expire sockets faster on close.

23 years ago[NETROM]: Fix sysctl initializers.
Jeroen Vreeken [Thu, 14 Aug 2003 14:03:57 +0000 (07:03 -0700)]
[NETROM]: Fix sysctl initializers.

23 years ago[NET]: Fixing kfree() in SLIP driver.
Randy Dunlap [Thu, 14 Aug 2003 13:59:09 +0000 (06:59 -0700)]
[NET]: Fixing kfree() in SLIP driver.

23 years agoMerge nuts.ninka.net:/home/davem/src/BK/network-2.5
David S. Miller [Thu, 14 Aug 2003 12:57:51 +0000 (05:57 -0700)]
Merge nuts.ninka.net:/home/davem/src/BK/network-2.5
into nuts.ninka.net:/home/davem/src/BK/net-2.5

23 years agoMerge nuts.ninka.net:/home/davem/src/BK/sparcwork-2.5
David S. Miller [Thu, 14 Aug 2003 12:55:38 +0000 (05:55 -0700)]
Merge nuts.ninka.net:/home/davem/src/BK/sparcwork-2.5
into nuts.ninka.net:/home/davem/src/BK/sparc-2.5

23 years ago[power] Register PM subsystem, and create power/ directory in sysfs.
Patrick Mochel [Thu, 14 Aug 2003 12:31:17 +0000 (05:31 -0700)]
[power] Register PM subsystem, and create power/ directory in sysfs.

- Add file 'state' which provides single point of entry for all PM
  transitions.
  File accepts a string specifying what state to enter, which is one of:
  "standby": Power-on Suspend (aka S1)
  "suspend": Suspend-to-RAM (aka S3)
  "hibernate": Suspend-to-disk (aka S4)

  The names do suck, because they are lifted from the ACPI spec. Better
  naming suggestions are welcome, though these names are relatively well-
  known.

- Handler for file does little now, but will validate the passed string and
  call the appropriate functions.

- Needs to be integrated with swsusp and ACPI S3 code.

23 years agoHand Merge
Patrick Mochel [Thu, 14 Aug 2003 07:40:55 +0000 (00:40 -0700)]
Hand Merge

23 years agoDRI CVS update: bump i810 driver to 1.4.
Linus Torvalds [Thu, 14 Aug 2003 05:58:18 +0000 (22:58 -0700)]
DRI CVS update: bump i810 driver to 1.4.

This fixes the DMA interface to be backwards compatible with older
XFree86 versions, by looking at the I810_INIT_DMA parameters and
figuring out old version semantics.

23 years agoDRI CVS update: document r128 and radeon version numbers
Linus Torvalds [Thu, 14 Aug 2003 05:55:39 +0000 (22:55 -0700)]
DRI CVS update: document r128 and radeon version numbers

23 years ago[driver model] Remove 'power' file in favor of 'power' directory.
Patrick Mochel [Thu, 14 Aug 2003 05:41:10 +0000 (22:41 -0700)]
[driver model] Remove 'power' file in favor of 'power' directory.

- Only present when CONFIG_PM=y.
- Contains 'state' file for controlling power state with new PM
  infrastructure.

23 years agoMerge kernel.bkbits.net:/home/repos/linux-2.5
Patrick Mochel [Thu, 14 Aug 2003 05:40:20 +0000 (22:40 -0700)]
Merge kernel.bkbits.net:/home/repos/linux-2.5
into kernel.bkbits.net:/home/mochel/linux-2.5-core

23 years ago[driver model] Allow per-device shutdown or suspend on driver detach.
Patrick Mochel [Thu, 14 Aug 2003 05:34:30 +0000 (22:34 -0700)]
[driver model] Allow per-device shutdown or suspend on driver detach.

- Add struct device::detach_state, which tells the core what state to put
  the device in when it's detached from its driver (on module removal).

  This is a value in the range of 0-4, with 0 being On and meaning 'Do
  Nothing', 4 being Off, meaing calling ->shutdown() for the device, and
  1-3 being low-power states, meaning call ->suspend() for the device.

- Add per-device sysfs file 'detach_state' to control the value of the
  field.

- Add device_device_shutdown() function, and call it from bus.c::
  device_detach_driver().

23 years agoMark CLONE_DETACHED as being irrelevant: it must match CLONE_THREAD.
Linus Torvalds [Thu, 14 Aug 2003 04:11:39 +0000 (21:11 -0700)]
Mark CLONE_DETACHED as being irrelevant: it must match CLONE_THREAD.

CLONE_THREAD without CLONE_DETACHED will now return -EINVAL, and
for a while we will warn about anything that uses it (there are no
known users, but this will help pinpoint any problems if somebody
used to care about the invalid combination).

23 years ago[PATCH] Fix /sys/<dev>/<partition>/dev format: %04x -> %u:%u
Christophe Saout [Thu, 14 Aug 2003 03:44:14 +0000 (20:44 -0700)]
[PATCH] Fix /sys/<dev>/<partition>/dev format: %04x -> %u:%u

A part of the 64 bit kdev_t patch already got merged, and it changes the
format of /sys/block/<dev>/dev from %02x%02x to %u:%u.  The partition
could must also be changed.

e.g. cat /sys/block/hda/hda5/dev should return 3:5 instead of 0305

23 years ago[PATCH] Fix cryptoloop disk corruption under CBC mode
Fruhwirth Clemens [Thu, 14 Aug 2003 02:50:23 +0000 (19:50 -0700)]
[PATCH] Fix cryptoloop disk corruption under CBC mode

It was caused by improper IV calculation in loop.c

23 years ago[PATCH] Fix cryptoloop ECB mode
Fruhwirth Clemens [Thu, 14 Aug 2003 02:50:15 +0000 (19:50 -0700)]
[PATCH] Fix cryptoloop ECB mode

cryptoloop won't oops anymore if ECB mode is requested.

23 years agoMerge bk://kernel.bkbits.net//home/mochel/linux-2.5-power
Patrick Mochel [Thu, 14 Aug 2003 02:44:29 +0000 (19:44 -0700)]
Merge bk://kernel.bkbits.net//home/mochel/linux-2.5-power
into osdl.org:/home/mochel/src/kernel/linux-2.5-power

23 years agoMerge osdl.org:/home/mochel/src/kernel/linux-2.5-virgin
Patrick Mochel [Thu, 14 Aug 2003 02:36:17 +0000 (19:36 -0700)]
Merge osdl.org:/home/mochel/src/kernel/linux-2.5-virgin
into osdl.org:/home/mochel/src/kernel/linux-2.5-power

23 years ago[PATCH] Make x86-64 use new compat support code
Andi Kleen [Thu, 14 Aug 2003 02:25:39 +0000 (19:25 -0700)]
[PATCH] Make x86-64 use new compat support code

Just call them from the x86-64 entry code.

Also implement the x86-64 specific sys32_timer_create.

23 years ago[PATCH] add posix timer compat functions
Andi Kleen [Thu, 14 Aug 2003 02:25:30 +0000 (19:25 -0700)]
[PATCH] add posix timer compat functions

Add 32bit->64bit conversion functions for POSIX timers.

I kept timer_create architecture specific, because it does signal specific
stuff which is not portable enough for generic compat.

23 years ago[PATCH] add compat_utimes
Andi Kleen [Thu, 14 Aug 2003 02:25:22 +0000 (19:25 -0700)]
[PATCH] add compat_utimes

Add compat_sys_utimes for 32bit->64bit utimes conversion

23 years ago[PATCH] add compat_statfs64
Andi Kleen [Thu, 14 Aug 2003 02:25:15 +0000 (19:25 -0700)]
[PATCH] add compat_statfs64

Add compat_* functions for statfs64. The 32bit layout unfortunately
does not match x86-64.

23 years ago[PATCH] Make modules work on ARM
Russell King [Thu, 14 Aug 2003 02:21:40 +0000 (19:21 -0700)]
[PATCH] Make modules work on ARM

This patch allows modules to work for ARM, and is the one thing which
prevents the standard tree from building for any ARM machine.

After reviewing the /proc/kcore and kclist issues, I've decided that I'm
no longer prepared to even _think_ about supporting /proc/kcore on ARM -
it just gets too ugly, and adds too much code to make it worth the effort,
the time or the energy to implement a solution to that problem.

/proc/kcore should probably go away, but in the meantime this just allows
ARM to ignore the issues.

23 years ago[PATCH] ide: some CodingStyle fixes from 2.4.x for ide-tape.c
Bartlomiej Zolnierkiewicz [Thu, 14 Aug 2003 02:16:31 +0000 (19:16 -0700)]
[PATCH] ide: some CodingStyle fixes from 2.4.x for ide-tape.c

makes 2.4->2.6 diff noticeable smaller

23 years ago[PATCH] ide: remove bogus bh->bio conversion from ide-tape.c
Bartlomiej Zolnierkiewicz [Thu, 14 Aug 2003 02:16:23 +0000 (19:16 -0700)]
[PATCH] ide: remove bogus bh->bio conversion from ide-tape.c

and add stripped down buffer_head variant (struct idetape_bh).

ide-tape is accessed by a char device (not a block one!),
it uses block layer only to queue requests.

23 years ago[PATCH] ide: build fixes for ide-tape.c
Bartlomiej Zolnierkiewicz [Thu, 14 Aug 2003 02:16:15 +0000 (19:16 -0700)]
[PATCH] ide: build fixes for ide-tape.c

also add missing Kconfig help entry from 2.4.x