]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: s390: zfcp: Ensure synchronous unit_add
authorPeter Oberparleiter <oberpar@linux.ibm.com>
Tue, 3 Jun 2025 18:21:56 +0000 (20:21 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 9 Jun 2025 19:18:49 +0000 (15:18 -0400)
commit9697ca0d53e3db357be26d2414276143c4a2cd49
treed119ae941a16989e6691fc828ee39475f261205e
parent9b17621366d210ffee83262a8754086ebbde5e55
scsi: s390: zfcp: Ensure synchronous unit_add

Improve the usability of the unit_add sysfs attribute by ensuring that
the associated FCP LUN scan processing is completed synchronously.  This
enables configuration tooling to consistently determine the end of the
scan process to allow for serialization of follow-on actions.

While the scan process associated with unit_add typically completes
synchronously, it is deferred to an asynchronous background process if
unit_add is used before initial remote port scanning has completed.  This
occurs when unit_add is used immediately after setting the associated FCP
device online.

To ensure synchronous unit_add processing, wait for remote port scanning
to complete before initiating the FCP LUN scan.

Cc: stable@vger.kernel.org
Reviewed-by: M Nikhil <nikh1092@linux.ibm.com>
Reviewed-by: Nihar Panda <niharp@linux.ibm.com>
Signed-off-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Nihar Panda <niharp@linux.ibm.com>
Link: https://lore.kernel.org/r/20250603182252.2287285-2-niharp@linux.ibm.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/s390/scsi/zfcp_sysfs.c