Ming, > Current scsi host scan mechanism supposes to fallback into sync host > scan if async scan is in-progress. However, this rule isn't strictly > respected, because scsi_prep_async_scan() doesn't hold scan_mutex when > checking shost->async_scan. When scsi_scan_host() is called > concurrently, two async scan on same host may be started, and hang in > do_scan_async() is observed. > > Fixes this issue by checking & setting shost->async_scan atomically > with shost->scan_mutex. Applied to 5.10/scsi-fixes, thanks! -- Martin K. Petersen Oracle Linux Engineering