diff options
author | Christoph Hellwig <[email protected]> | 2021-08-25 18:31:08 +0200 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2021-08-25 14:20:32 -0600 |
commit | 7ee656c3ac3d047b4cf1269f83ac9d6c0bba916b (patch) | |
tree | cef84e52823c8574a5844e6deab2b125fdfc1a1e /lib/test_fortify/write_overflow-memcpy.c | |
parent | 438cd318c8dfa5228ffd43af1b98d7cd7d92e1c6 (diff) |
nbd: remove nbd->destroy_complete
The nbd->destroy_complete pointer is not really needed. For creating
a device without a specific index we now simplify skip devices marked
NBD_DESTROY_ON_DISCONNECT as there is not much point to reuse them.
For device creation with a specific index there is no real need to
treat the case of a requested but not finished disconnect different
than any other device that is being shutdown, i.e. we can just return
an error, as a slightly different race window would anyway.
Fixes: 6e4df4c64881 ("nbd: reduce the nbd_index_mutex scope")
Reported-by: Tetsuo Handa <[email protected]>
Reported-by: [email protected]
Signed-off-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Josef Bacik <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions