]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd83f6d8ce3e1dd9a3741bdc086b86e7f3496e433
tree9cab7739f84564d9bbe060e1b2334ddc8ec3a7b9
parent3088b171d4abc7d779f379a6ee0cf5f8feb263d6
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