diff options
author | Ming Lei <ming.lei@redhat.com> | 2023-03-18 17:12:31 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-03-18 17:32:46 +0300 |
commit | 4985e7b2c002eb4c5c794a1d3acd91b82c89a0fd (patch) | |
tree | 7f42e3894c7403361fb64c3021e09285443c03f1 /lib/syscall.c | |
parent | 8f0d196e4dc137470bbd5de98278d941c8002fcb (diff) | |
download | linux-4985e7b2c002eb4c5c794a1d3acd91b82c89a0fd.tar.xz |
block: ublk_drv: mark device as LIVE before adding disk
IO can be started before add_disk() returns, such as reading parititon table,
then the monitor work should work for making forward progress.
So mark device as LIVE before adding disk, meantime change to
DEAD if add_disk() fails.
Fixed: 71f28f3136af ("ublk_drv: add io_uring based userspace block driver")
Reviewed-by: Ziyang Zhang <ZiyangZhang@linux.alibaba.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20230318141231.55562-1-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib/syscall.c')
0 files changed, 0 insertions, 0 deletions