diff options
| author | Ming Lei <[email protected]> | 2023-03-18 14:12:31 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2023-03-18 14:32:46 +0000 |
| commit | 4985e7b2c002eb4c5c794a1d3acd91b82c89a0fd (patch) | |
| tree | 7f42e3894c7403361fb64c3021e09285443c03f1 /tools/perf/util/scripting-engines/trace-event-python.c | |
| parent | block: remove obsolete config BLOCK_COMPAT (diff) | |
| download | kernel-4985e7b2c002eb4c5c794a1d3acd91b82c89a0fd.tar.gz kernel-4985e7b2c002eb4c5c794a1d3acd91b82c89a0fd.zip | |
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 <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions
