]> 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)
commit9adc2ef378b8eb3f904517eeea7101f54a740f5c
tree3c638cde9063a2461b9767ec626b4359445c662a
parent384a2219ac2e79801e31ae361bc0c5fbfd3020dc
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