]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: Stop using the clock scaling lock in the error handler
authorBart Van Assche <bvanassche@acm.org>
Fri, 3 Dec 2021 23:19:48 +0000 (15:19 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 7 Dec 2021 03:30:34 +0000 (22:30 -0500)
commit697522590debadcade648be96d6ac9187f9277af
tree069d1d489f71f4896ccfb3a43b0c53657048fad3
parent2006fa8d47e1e5e036b4fe7ce3f8e437e1a99b6c
scsi: ufs: Stop using the clock scaling lock in the error handler

Instead of locking and unlocking the clock scaling lock, surround the
command queueing code with an RCU reader lock and call synchronize_rcu().
This patch prepares for removal of the clock scaling lock.

Link: https://lore.kernel.org/r/20211203231950.193369-16-bvanassche@acm.org
Tested-by: Bean Huo <beanhuo@micron.com>
Reviewed-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c