-
Notifications
You must be signed in to change notification settings - Fork 0
ublk: introduce UBLK_CMD_TRY_STOP_DEV #448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: linus-master_base
Are you sure you want to change the base?
Conversation
|
Upstream branch: d26143b |
4a5ddea to
0ab4e8c
Compare
|
Upstream branch: aacb0a6 |
3aa004a to
c2f932f
Compare
|
Upstream branch: aacb0a6 |
c2f932f to
a63aad3
Compare
|
Upstream branch: aacb0a6 |
a63aad3 to
8722d70
Compare
|
Upstream branch: aacb0a6 |
8722d70 to
f7a28b3
Compare
|
Upstream branch: aacb0a6 |
f7a28b3 to
674694c
Compare
|
Upstream branch: aacb0a6 |
674694c to
cd119a2
Compare
0ab4e8c to
a2a6d78
Compare
This function always returns 0, so there is no need to return a value. Signed-off-by: Yoav Cohen <yoav@nvidia.com> Reviewed-by: Ming Lei <ming.lei@redhat.com>
This command is similar to UBLK_CMD_STOP_DEV, but it only stops the device if there are no active openers for the ublk block device. If the device is busy, the command returns -EBUSY instead of disrupting active clients. This allows safe, non-destructive stopping. Advertise UBLK_CMD_TRY_STOP_DEV support via 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: Ming Lei <ming.lei@redhat.com>
|
Upstream branch: aacb0a6 |
cd119a2 to
5875293
Compare
Pull request for series with
subject: ublk: introduce UBLK_CMD_TRY_STOP_DEV
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1037344