Skip to content
  • Arnd Bergmann's avatar
    scsi/sd: remove big kernel lock · 409f3499
    Arnd Bergmann authored
    
    
    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: default avatarArnd Bergmann <arnd@arndb.de>
    Cc: linux-scsi@vger.kernel.org
    Cc: "James E.J. Bottomley" <James.Bottomley@suse.de>
    Acked-by: default avatarChristoph Hellwig <hch@infradead.org>
    Signed-off-by: default avatarJens Axboe <jaxboe@fusionio.com>
    409f3499