]> 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)
commit4b9cc8ce5d6c24e65e5c29c14ff1d38ac523f6f5
treee2a4674f63363cbe4a1cd1c975d57e100534b4ee
parent168fbe9d0ec8a1042dd15770cde5b56d1dc595ed
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