summaryrefslogtreecommitdiff
path: root/rust/alloc/collections/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorYoav Cohen <yoav@nvidia.com>2026-01-13 00:05:01 +0200
committerJens Axboe <axboe@kernel.dk>2026-01-12 15:07:31 -0700
commit93ada1b3da398b492c45429cef1a1c9651d5c7ba (patch)
treefd6a4acfbb0bb27ecf1a4453cb480d409e9ff469 /rust/alloc/collections/git@git.tavy.me:linux.git
parent9e386f49fa269298490b303c423c6af4645f184e (diff)
ublk: add UBLK_CMD_TRY_STOP_DEV command
Add a best-effort stop command, UBLK_CMD_TRY_STOP_DEV, which only stops a ublk device when it has no active openers. Unlike UBLK_CMD_STOP_DEV, this command does not disrupt existing users. New opens are blocked only after disk_openers has reached zero; if the device is busy, the command returns -EBUSY and leaves it running. The ub->block_open flag is used only to close a race with an in-progress open and does not otherwise change open behavior. Advertise support via the UBLK_F_SAFE_STOP_DEV feature flag. Signed-off-by: Yoav Cohen <yoav@nvidia.com> Reviewed-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'rust/alloc/collections/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions