Re: [PATCH 4/5] scsi: blocking IO when host is blocked

From: Bart Van Assche
Date: Mon Mar 27 2023 - 17:37:58 EST


On 3/24/23 18:17, Ye Bin wrote:
+ if (unlikely(scsi_host_blocked(shost)))
+ goto out_dec_target_busy;
I this check would be moved earlier then the atomic_inc() and atomic_dec() of scsi_target(sdev)->target_busy could be skipped.

Thanks,

Bart.