]> bbs.cooldavid.org Git - net-next-2.6.git/commit
pktcdvd: improve BKL and compat_ioctl.c usage
authorArnd Bergmann <arnd@arndb.de>
Wed, 28 Apr 2010 12:36:41 +0000 (14:36 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 29 Apr 2010 15:44:37 +0000 (08:44 -0700)
commitf80a0ca6ad8f2800453e819dafa09a0ed9e56850
treebdbffa0e212888c31e11e89dc1194935f6825085
parenta36fed12a4d980eebb2e67b87ea30ad090238cff
pktcdvd: improve BKL and compat_ioctl.c usage

The pktcdvd driver uses proper locking and does not need the BKL in the
ioctl and llseek functions of the character device, so kill both.

Moving the compat_ioctl handling from common code into the driver itself
fixes build problems when CONFIG_BLOCK is disabled.

Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/pktcdvd.c
fs/compat_ioctl.c