nbd: add multi-connection support
authorJosef Bacik <jbacik@fb.com>
Tue, 22 Nov 2016 19:04:40 +0000 (14:04 -0500)
committerJens Axboe <axboe@fb.com>
Tue, 22 Nov 2016 19:16:32 +0000 (12:16 -0700)
commit9561a7ade0c205bc2ee035a2ac880478dcc1a024
tree3c638cde9063a2461b9767ec626b4359445c662a
parente00f4f4d0ff7e13b9115428a245b49108d625f09
nbd: add multi-connection support

NBD can become contended on its single connection.  We have to serialize all
writes and we can only process one read response at a time.  Fix this by
allowing userspace to provide multiple connections to a single nbd device.  This
coupled with block-mq drastically increases performance in multi-process cases.
Thanks,

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