]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit124d6db07c3bd0bdb57ba0e22ff4e5b87e7cb32e
tree2b9ea08621a7199aa331cf71e9a44e18dafdf0f7
parent72f2f8f6929cf680d42ca44f87b7d370aff94d85
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