Re: [PATCH] scsi: ch: Remove the minor from ch_index_idr after device_destroy()

From: Martin K. Petersen (Oracle)

Date: Tue Nov 17 2026 - 23:49:40 EST


On Mon, 09 Nov 2026 11:06:51 -0500, Changyul Lee wrote:

> ch_remove() removes the minor from ch_index_idr before device_destroy()
> removes the "sch<N>" device. A changer probed in between can get the
> same minor, and its device_create() fails:
>
> sysfs: cannot create duplicate filename '/class/scsi_changer/sch0'
> ...
> ch 1:0:0:0: ch0: device_create failed
>
> [...]

Applied to 7.4/scsi-fixes, thanks!

[1/1] scsi: ch: Remove the minor from ch_index_idr after device_destroy()
https://git.kernel.org/mkp/scsi/c/9f9e0b1e5399

--
Martin K. Petersen