block: simplify ioc_release_fn()
authorTejun Heo <tj@kernel.org>
Wed, 15 Feb 2012 08:45:52 +0000 (09:45 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 15 Feb 2012 08:45:52 +0000 (09:45 +0100)
commit2274b029f640cd652ab59c363e5beebf5f50e609
tree652a2e774c537b83cd70481a936f5c7485436491
parentd705ae6b133f9f6a8beee617b1224b6a5c99c5da
block: simplify ioc_release_fn()

Reverse double lock dancing in ioc_release_fn() can be simplified by
just using trylock on the queue_lock and back out from ioc lock on
trylock failure.  Simplify it.

Signed-off-by: Tejun Heo <tj@kernel.org>
Tested-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-ioc.c