]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5b7b67920ac07fcde5982432536e1fc8114a461b
tree3c638cde9063a2461b9767ec626b4359445c662a
parent642f787ef0770e6571693bdacb3db10d33f447ed
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