Files
linux/drivers
Kevin Vigor 5e3c3a7ece nbd: clear DISCONNECT_REQUESTED flag once disconnection occurs.
When a userspace client requests a NBD device be disconnected, the
DISCONNECT_REQUESTED flag is set. While this flag is set, the driver
will not inform userspace when a connection is closed.

Unfortunately the flag was never cleared, so once a disconnect was
requested the driver would thereafter never tell userspace about a
closed connection. Thus when connections failed due to timeout, no
attempt to reconnect was made and eventually the device would fail.

Fix by clearing the DISCONNECT_REQUESTED flag (and setting the
DISCONNECTED flag) once all connections are closed.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Kevin Vigor <kvigor@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2018-05-30 11:30:42 -06:00
..
2018-05-29 08:47:40 -06:00
…
2018-04-19 15:11:50 -07:00
…
…
…
2018-03-27 09:51:22 +02:00
…
…
2018-04-27 14:12:43 +02:00
…
2018-04-12 21:46:10 -04:00
…
2018-05-29 08:59:21 -06:00
2018-05-11 15:07:58 -06:00
…
…
…
…
2018-05-02 21:47:35 +02:00
…
…
…
…
…
2018-05-15 13:56:16 -06:00
…
…
…
…
…
…
…
…
…
…
…
2018-03-29 13:38:10 +03:00
…