Skip to content

nbd: Netlink interface and path failure enhancements

Josef Bacik linux-block 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12nbd: put socket in error casesdrivers/block/nbd.c+7 -20 replies
2/12nbd: handle single path failures gracefullydrivers/block/nbd.c+125 -260 replies
3/12nbd: separate out the config informationdrivers/block/nbd.c+263 -1740 replies
4/12nbd: stop using the bdev everywheredrivers/block/nbd.c+37 -550 replies
5/12nbd: add a basic netlink interfacedrivers/block/nbd.c include/uapi/linux/nbd-netlink.h+359 -260 replies
6/12nbd: add a reconfigure netlink commanddrivers/block/nbd.c include/uapi/linux/nbd-netlink.h+142 -00 replies
7/12nbd: multicast dead link notificationsdrivers/block/nbd.c include/uapi/linux/nbd-netlink.h+81 -140 replies
8/12nbd: only clear the queue on device teardowndrivers/block/nbd.c+3 -10 replies
9/12nbd: handle dead connectionsdrivers/block/nbd.c include/uapi/linux/nbd-netlink.h+60 -40 replies
10/12nbd: add a status netlink commanddrivers/block/nbd.c include/uapi/linux/nbd-netlink.h+133 -00 replies
11/12nbd: add device refcountingdrivers/block/nbd.c+86 -180 replies
12/12nbd: add a flag to destroy an nbd device on disconnectdrivers/block/nbd.c include/uapi/linux/nbd.h+35 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/12] nbd: Netlink interface and path failure enhancements

This patchset adds a new netlink configuration interface to NBD as well as a bunch of enhancments around path failures. The patches provide the following enhancemnts to NBD

- Netlink configuration interface that doesn't leave a userspace application waiting in kernel space for the device to disconnect.
- Netlink reconfigure interface for adding re-connected sockets to replace dead sockets.
- A flag to destroy the NBD device on disconnect, much like how mount -o loop works.
- A status interface that currently will only report whether a device is connected or not, but can be extended to include whatever in the future.
- A netlink multicast notification scheme to notify user space when there are connection issues to allow for seamless reconnects.
- Dead link handling. You can specify a dead link timeout and the NBD device will pause IO for that timeout waiting to see if the connection can be re-established. This is helpful to allow for things like nbd server upgrades where the whole server disappears for a short period of time.

These patches have been thorougly and continuously tested for about a month. I've been finding bugs in various places, but this batch has been solid for the last few days of testing, which include a constant disconnect/reconnect torture test. Thanks,

Josef