scsi/sd: remove big kernel lock
authorArnd Bergmann <arnd@arndb.de>
Wed, 7 Jul 2010 14:51:29 +0000 (16:51 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Sat, 7 Aug 2010 16:26:08 +0000 (18:26 +0200)
commit409f3499a2cfcd1e9c2857c53af7fcce069f027f
tree7275165954c7f1143d219f4b141888d6c0a5a4ab
parent15392efb9d427482754f6d267262452878667499
scsi/sd: remove big kernel lock

Every user of the BKL in the sd driver is the
result of the pushdown from the block layer
into the open/close/ioctl functions.

The only place that used to rely on the BKL is
the sdkp->openers variable, which gets converted
into an atomic_t.

Nothing else seems to rely on the BKL, since the
functions do not touch global data without holding
another lock, and the open/close functions are
still protected from concurrent execution using
the bdev->bd_mutex.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: linux-scsi@vger.kernel.org
Cc: "James E.J. Bottomley" <James.Bottomley@suse.de>
Acked-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
drivers/scsi/sd.c
drivers/scsi/sd.h