[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <032dfbdc-bf8d-4ecc-dde3-162162be77ac@acm.org>
Date: Mon, 27 Mar 2023 14:37:48 -0700
From: Bart Van Assche <bvanassche@....org>
To: Ye Bin <yebin@...weicloud.com>, jejb@...ux.ibm.com,
martin.petersen@...cle.com, linux-scsi@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: Ye Bin <yebin10@...wei.com>
Subject: Re: [PATCH 4/5] scsi: blocking IO when host is blocked
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.
Powered by blists - more mailing lists