On Tue, 2023-10-10 at 07:09 +0300, Andrei Borzenkov wrote:
On 09.10.2023 22:21, Martin Wilck via openSUSE Factory wrote:
That shouldn't have anything to do with the recent change. The order of /dev/sd* has been non-deterministic at least since kernel commit f049cf1a7b67 ("scsi: sd: Rely on the driver core for asynchronous probing"), which was in upstream kernel 5.3, 4 years ago.
Is not (S)ATA probing done by ATA layer? Is this change relevant for the consumer systems without true SCSI controllers at all? If yes, which driver should be referenced in this case?
If there's just one SCSI device attached to any given ATA port, it might indeed not matter. But in general, the probing policy for the "sd_mod" driver affects ordering of sd devices attached to any given SCSI host, and SATA ports correspond to SCSI hosts.
This kernel has been in Leap since 15.2. But even before that, the order has never been truly deterministic, even if it might have seemed to be the case on some systems. The order has always been dependent on the order of SCSI drivers loaded and the order of controllers on the PCI bus.
Yes. And the problem in the forum thread referenced here was caused by making SCSI drivers modules which made them be loaded after USB.
https://lists.opensuse.org/archives/list/kernel@lists.opensuse.org/thread/ML...
Right. And this change has been effective since kernel 6.5.4, which reached tumbleweed 230921, one day before I made the "SCSI device identification" announcement which started this thread. Martin