skd: Optimize locking
authorBart Van Assche <bart.vanassche@wdc.com>
Thu, 17 Aug 2017 20:13:37 +0000 (13:13 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 18 Aug 2017 14:45:29 +0000 (08:45 -0600)
commit74c74282c554f48f6a24b5050e486db5202fc1a2
treef83b8c993f5b6704b4d60dda26bbf56a8cadbde9
parente2bb5548279a95cf5b2ecc7cb070a743aade3445
skd: Optimize locking

Only take skdev->lock if necessary.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/skd_main.c