block: add a blk_plug_device_unlocked() that grabs the queue lock
authorJens Axboe <jens.axboe@oracle.com>
Fri, 1 Aug 2008 18:31:32 +0000 (20:31 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 1 Aug 2008 18:31:32 +0000 (20:31 +0200)
commit6c5e0c4d518a37e1d5d794c14433e80284415079
tree26208a4fe4115a37c000a13d50df8c1a5e393553
parent94ad374a0751f40d25e22e036c37f7263569d24c
block: add a blk_plug_device_unlocked() that grabs the queue lock

blk_plug_device() must be called with the queue lock held, so callers
often just grab and release the lock for that purpose. Add a helper
that does just that.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-core.c
include/linux/blkdev.h