Commit dff0b2a1 authored by SEO HOYOUNG's avatar SEO HOYOUNG Committed by Sandeep Dhavale
Browse files

FROMGIT: scsi: ufs: core: changing the status to check inflight

ufshcd_cmd_inflight() is used to check whether or not a command is in progress.
Make it skip commands that have already completed by changing the
!blk_mq_request_started(rq) check into blk_mq_rq_state(rq) != MQ_RQ_IN_FLIGHT.
We cannot rely on lrbp->cmd since lrbp->cmd is not cleared when a command completes.

v1 -> v2: convert the two return statements into a single return statement.
And modified comment of commit

v2 -> v3: remove superfluous parentheses in the above return statement.

Link: https://lore.kernel.org/linux-scsi/20230517223157.1068210-3-bvanassche@acm.org/


Signed-off-by: default avatarSEO HOYOUNG <hy50.seo@samsung.com>
Reviewed-by: default avatarBart Van Assche <bvanassche@acm.org>

Bug: 338311340
Link: https://lore.kernel.org/linux-scsi/20240411071444.51873-1-hy50.seo@samsung.com/
(cherry picked from commit 13c28be5
 http://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git


 6.10/scsi-staging)
Change-Id: If6eaefaff0657da5c53563d3ba68b763f187be6b
Signed-off-by: default avatarSEO HOYOUNG <hy50.seo@samsung.com>
parent bbe55af3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment