]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Oct 2023 12:56:52 +0000 (14:56 +0200)
commit81a6cdfcfd233adf0be7952e91ffda4b9a04e959
tree578881b7c18499d6682f0e3822fd74d78c4088e5
parent843348f9e4aab5802b27db8d89634a40c88854c1
scsi: ufs: core: Move __ufshcd_send_uic_cmd() outside host_lock

[ Upstream commit 2d3f59cf868b4a2dd678a96cd49bdd91411bd59f ]

__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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/ufs/core/ufshcd.c