On Mar 07, 2023 / 13:44, Bart Van Assche wrote: > scsi_proc_hostdir_rm() decreases a reference counter and hence must > only be called once per host that is removed. This change does not > require a scsi_add_host_with_dma() change since scsi_add_host_with_dma() > will return 0 (success) if scsi_proc_host_add() is called. > > Cc: John Garry <john.g.garry@xxxxxxxxxx> > Reported-by: John Garry <john.g.garry@xxxxxxxxxx> > Reported-by: syzbot+645a4616b87a2f10e398@xxxxxxxxxxxxxxxxxxxxxxxxx > Fixes: fc663711b944 ("scsi: core: Remove the /proc/scsi/${proc_name} directory earlier") > Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx> When I ran blktests test case block/001 on the linux kernel v6.3-rc1, I observed WARNs in remove_proc_entry(). I found this patch avoids the WARNs. Thanks. Tested-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@xxxxxxx> -- Shin'ichiro Kawasaki