]> git.baikalelectronics.ru Git - kernel.git/commit
nbd: allow block mq to deal with timeouts
authorJosef Bacik <jbacik@fb.com>
Thu, 8 Sep 2016 19:33:40 +0000 (12:33 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 8 Sep 2016 20:01:37 +0000 (14:01 -0600)
commitba8c84fc29177a0192c58a2d049c414aa20d84d8
treee2a4674f63363cbe4a1cd1c975d57e100534b4ee
parenta45e1614458f7b4c91f02965e4241379fd0ba1af
nbd: allow block mq to deal with timeouts

Instead of rolling our own timer, just utilize the blk mq req timeout and do the
disconnect if any of our commands timeout.

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nbd.c