blk-mq: add flag for drivers wanting blocking ->queue_rq()
authorJens Axboe <axboe@fb.com>
Wed, 21 Sep 2016 16:12:13 +0000 (10:12 -0600)
committerJens Axboe <axboe@fb.com>
Thu, 22 Sep 2016 20:28:38 +0000 (14:28 -0600)
commit1b792f2f92784c00db2e6431496e437855d6f12a
tree50c049a9056d96ebaf176d6a339f655282ff9098
parent63581af3f31e0dbea112b83f77c4fbb6a10e1406
blk-mq: add flag for drivers wanting blocking ->queue_rq()

If a driver sets BLK_MQ_F_BLOCKING, it is allowed to block in its
->queue_rq() handler. For that case, blk-mq ensures that we always
calls it from a safe context.

Signed-off-by: Jens Axboe <axboe@fb.com>
Tested-by: Josef Bacik <jbacik@fb.com>
block/blk-mq.c
include/linux/blk-mq.h