diff options
author | Kevin Vigor <[email protected]> | 2018-05-30 10:45:11 -0600 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2018-05-30 11:30:42 -0600 |
commit | 5e3c3a7ecefefaebc7c9a626fe4522cb85bbdaad (patch) | |
tree | 03f7f01f6c8164298296f87344a71dd754fab70b /tools/perf/util/c++/clang.cpp | |
parent | 2ab74cd29622c48e9852d85618081c061b6ac6d9 (diff) |
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 <[email protected]>
Signed-off-by: Kevin Vigor <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/util/c++/clang.cpp')
0 files changed, 0 insertions, 0 deletions