scsi: ufs: core: Move __ufshcd_send_uic_cmd() outside host_lock
authorKiwoong Kim <kwmad.kim@samsung.com>
Mon, 4 Sep 2023 01:30:44 +0000 (10:30 +0900)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 5 Sep 2023 10:10:24 +0000 (06:10 -0400)
commit2d3f59cf868b4a2dd678a96cd49bdd91411bd59f
tree3043e926ab1c24ae74bacb9669eb07b34cc746f2
parent7df0b2605489bef3f4223ad66f1f9bb8d50d4cd2
scsi: ufs: core: Move __ufshcd_send_uic_cmd() outside host_lock

__ufshcd_send_uic_cmd() is wrapped by uic_cmd_mutex and its related
contexts are accessed within the section wrapped by uic_cmd_mutex. Thus,
wrapping with host_lock is redundant.

Signed-off-by: Kiwoong Kim <kwmad.kim@samsung.com>
Link: https://lore.kernel.org/r/782ba5f26f0a96e58d85dff50751787d2d2a6b2b.1693790060.git.kwmad.kim@samsung.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Chanwoo Lee <cw9316.lee@samsung.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufshcd.c