RE: [PATCH] scsi: ufs: make sure scan sequence for multiple hosts

2020-10-26 Thread Chanho Park
> In case you'll convince Bart that this code is needed, maybe use a IDA > handle for that? Thanks for your suggestion. IDA is useful to maintain unique IDs with bitmap structure but the patch assumes host_no is the unique number and can be used in the bitmap for making sequential order. Best

Re: [PATCH] scsi: ufs: make sure scan sequence for multiple hosts

2020-10-23 Thread Bart Van Assche
On 10/21/20 9:59 PM, Chanho Park wrote: Please use udev or systemd instead of adding code in the UFS driver that is not necessary when udev or systemd is used. What I mentioned was how it can be handled when we mount rootfs directly from kernel. 1) kernel -> initramfs (mount root) ->

RE: [PATCH] scsi: ufs: make sure scan sequence for multiple hosts

2020-10-22 Thread Avri Altman
> > > > Did you mean /dev/disk/by-[part]label/ symlink? It's quite reasonable to > > > use them by udev in userspace such as initramfs but some cases does not > > use > > > initramfs or initrd. In that case, we need to load the root > > > device(/dev/sda[N]) directly from kernel. > > > > Please

RE: [PATCH] scsi: ufs: make sure scan sequence for multiple hosts

2020-10-21 Thread Chanho Park
> > Did you mean /dev/disk/by-[part]label/ symlink? It's quite reasonable to > > use them by udev in userspace such as initramfs but some cases does not > use > > initramfs or initrd. In that case, we need to load the root > > device(/dev/sda[N]) directly from kernel. > > Please use udev or

Re: [PATCH] scsi: ufs: make sure scan sequence for multiple hosts

2020-10-21 Thread Bart Van Assche
On 10/20/20 9:23 PM, chanho61.park wrote: > Did you mean /dev/disk/by-[part]label/ symlink? It's quite reasonable to > use them by udev in userspace such as initramfs but some cases does not use > initramfs or initrd. In that case, we need to load the root > device(/dev/sda[N]) directly from

RE: [PATCH] scsi: ufs: make sure scan sequence for multiple hosts

2020-10-20 Thread chanho61.park
nel.org > Subject: Re: [PATCH] scsi: ufs: make sure scan sequence for multiple hosts > > On 10/20/20 12:05 AM, Chanho Park wrote: > > By doing scan as asynchronous way, scsi device scannning can be out of > > order execution. It is no problem if there is a ufs host but

Re: [PATCH] scsi: ufs: make sure scan sequence for multiple hosts

2020-10-20 Thread Bart Van Assche
On 10/20/20 12:05 AM, Chanho Park wrote: > By doing scan as asynchronous way, scsi device scannning can be out of > order execution. It is no problem if there is a ufs host but the scsi > device name of each host can be changed according to the scan sequences. > > Ideal Case) host0 scan first >