[PATCH] 2.5.4-pre1: further llseek cleanup (3/3)
authorRobert Love <rml@tech9.net>
Wed, 6 Feb 2002 02:46:45 +0000 (18:46 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Wed, 6 Feb 2002 02:46:45 +0000 (18:46 -0800)
commit3ffa0b66d4bef1a4e5fe5d71e2c5dd3e72093b7f
tree8fd249ec96b8475a2c30c0621106ecd82bf245ae
parenta0289e82ce4e460e7f9013993bdc5e69dd2fb1a6
[PATCH] 2.5.4-pre1: further llseek cleanup (3/3)

The previous patch did not provide protection for device lseek methods
(drivers/* stuff).  This patch pushes the BKL into each of the remaining
lseek methods -- without them we have a race.

I'd much prefer to have a a better lock to push down than the BKL, but
that will have to wait.

Before you balk at the size, remember patch #2 in this series which
removed much code ;-)

Thanks to Al for assistance, especially a listing of affected files.

Robert Love
22 files changed:
arch/cris/drivers/eeprom.c
arch/i386/kernel/cpuid.c
arch/i386/kernel/msr.c
arch/ppc/kernel/ppc_htab.c
drivers/char/mem.c
drivers/char/nvram.c
drivers/char/nwflash.c
drivers/char/vc_screen.c
drivers/ieee1394/pcilynx.c
drivers/macintosh/nvram.c
drivers/mtd/mtdchar.c
drivers/pci/proc.c
drivers/pnp/isapnp_proc.c
drivers/sbus/char/flash.c
drivers/sbus/char/jsflash.c
drivers/usb/devices.c
drivers/usb/devio.c
drivers/usb/drivers.c
drivers/usb/inode.c
drivers/usb/uhci-debug.h
drivers/zorro/proc.c
fs/driverfs/inode.c