nbd: Netlink interface and path failure enhancements
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest12 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | nbd: put socket in error casesdrivers/ | +7 | 0 replies | |
| 2/12 | nbd: handle single path failures gracefullydrivers/ | +125 | 0 replies | |
| 3/12 | nbd: separate out the config informationdrivers/ | +263 | 0 replies | |
| 4/12 | nbd: stop using the bdev everywheredrivers/ | +37 | 0 replies | |
| 5/12 | nbd: add a basic netlink interfacedrivers/ include/ | +359 | 0 replies | |
| 6/12 | nbd: add a reconfigure netlink commanddrivers/ include/ | +142 | 0 replies | |
| 7/12 | nbd: multicast dead link notificationsdrivers/ include/ | +81 | 0 replies | |
| 8/12 | nbd: only clear the queue on device teardowndrivers/ | +3 | 0 replies | |
| 9/12 | nbd: handle dead connectionsdrivers/ include/ | +60 | 0 replies | |
| 10/12 | nbd: add a status netlink commanddrivers/ include/ | +133 | 0 replies | |
| 11/12 | nbd: add device refcountingdrivers/ | +86 | 0 replies | |
| 12/12 | nbd: add a flag to destroy an nbd device on disconnectdrivers/ include/ | +35 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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