On 2023/3/7 22:15, Ming Lei wrote: > 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. > > Reviewed-by: Ziyang Zhang <ZiyangZhang@xxxxxxxxxxxxxxxxx> > Signed-off-by: Ming Lei <ming.lei@xxxxxxxxxx> > --- Hi Ming, Without this patch, if we fail to read partition table(Could this happen?)and EIO is returned, then START_DEV may hang forever, right? I may have encountered such error before and I think this bug is introduced by: bbae8d1f526b(ublk_drv: consider recovery feature in aborting mechanism) which change the behavior of monitor_work. So shall we add a fixes tag, such as: Fixes: bbae8d1f526b("ublk_drv: consider recovery feature in aborting mechanism") Regards, Zhang