]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
null_blk: add blocking mode
authorJens Axboe <axboe@fb.com>
Thu, 30 Mar 2017 19:44:26 +0000 (13:44 -0600)
committerJens Axboe <axboe@fb.com>
Thu, 30 Mar 2017 19:44:26 +0000 (13:44 -0600)
commitdb5bcf87bb9e856e90c131d6e636a5550c2bbcd3
treea444271fa55e059a87263021575e7036dcef19af
parentbf4907c05e615f6a1811d61c58d56da52f7e9954
null_blk: add blocking mode

This adds a new module parameter to null_blk, blocking. If set, null_blk
will set the BLK_MQ_F_BLOCKING flag, indicating that it sometimes/always
needs to block in its ->queue_rq() function.  The intent is to help find
regressions in blocking drivers, since not many of them exist.

If null_blk is loaded with submit_queues > 1 and blocking=1, this
shows the regression recently fixed by bf4907c05e61.

Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/null_blk.c