blk-mq: improve blk_mq_try_issue_directly
authorChristoph Hellwig <hch@lst.de>
Wed, 22 Mar 2017 19:01:51 +0000 (15:01 -0400)
committerJens Axboe <axboe@fb.com>
Thu, 23 Mar 2017 02:16:59 +0000 (20:16 -0600)
commit5eb6126e1c5c5b69d90003444acc99743881b7b7
tree9cab7739f84564d9bbe060e1b2334ddc8ec3a7b9
parent254d259da0c3cb77f03a2adb8959c293f638a3d2
blk-mq: improve blk_mq_try_issue_directly

Rename blk_mq_try_issue_directly to __blk_mq_try_issue_directly and add a
new wrapper that takes care of RCU / SRCU locking to avoid having
boileplate code in the caller which would get duplicated with new callers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c