aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-memcpy.c
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2021-08-25 18:31:07 +0200
committerJens Axboe <[email protected]>2021-08-25 14:20:29 -0600
commit438cd318c8dfa5228ffd43af1b98d7cd7d92e1c6 (patch)
treed70ba2194a286f02d8fe8359289e6db73c692a4a /lib/test_fortify/write_overflow-memcpy.c
parentb190300decb352a0b865d7aa379e89b17d772a43 (diff)
nbd: only return usable devices from nbd_find_unused
Device marked as NBD_DESTROY_ON_DISCONNECT can and should be skipped given that they won't survive the disconnect. So skip them and try to grab a reference directly and just continue if the the devices is being torn down or created and thus has a zero refcount. 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