]> git.baikalelectronics.ru Git - kernel.git/commit
nbd: use our own workqueue for recv threads
authorJosef Bacik <jbacik@fb.com>
Wed, 1 Feb 2017 21:11:11 +0000 (16:11 -0500)
committerJens Axboe <axboe@fb.com>
Wed, 1 Feb 2017 23:28:06 +0000 (16:28 -0700)
commit5ff273df9f3706616aebf85d85861a3853d6bc35
tree2b9ea08621a7199aa331cf71e9a44e18dafdf0f7
parent2c1f7ecdf2a779c4ccd0b4b03f5857b4ccf416de
nbd: use our own workqueue for recv threads

Since we are in the memory reclaim path we need our recv work to be on a
workqueue that has WQ_MEM_RECLAIM set so we can avoid deadlocks.  Also
set WQ_HIGHPRI since we are in the completion path for IO.

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