mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] Untie the host lock entanglement - part 2
@ 2024-10-27  8:25 Avri Altman
  2024-10-27  8:25 ` [PATCH 1/2] scsi: ufs: core: Introduce a new clock_gating lock Avri Altman
  2024-10-27  8:25 ` [PATCH 2/2] scsi: ufs: core: Introduce a new clock_scaling lock Avri Altman
  0 siblings, 2 replies; 7+ messages in thread
From: Avri Altman @ 2024-10-27  8:25 UTC (permalink / raw)
  To: Martin K . Petersen
  Cc: linux-scsi, linux-kernel, Bart Van Assche, Avri Altman

Here is the 2nd part in the sequel, watering down the scsi host lock
usage in the ufs driver. This work is motivated by a comment made by
Bart [1], of the abuse of the scsi host lock in the ufs driver.  Its
Precursor [2] removed the host lock around some of the host register
accesses.

This part replace the scsi host lock by dedicated locks serializing
access to the clock gating and clock scaling members.


[1] https://lore.kernel.org/linux-scsi/0b031b8f-c07c-42ef-af93-7336439d3c37@acm.org/
[2] https://lore.kernel.org/linux-scsi/20241024075033.562562-1-avri.altman@wdc.com/

Avri Altman (2):
  scsi: ufs: core: Introduce a new clock_gating lock
  scsi: ufs: core: Introduce a new clock_scaling lock

 drivers/ufs/core/ufshcd.c | 92 ++++++++++++++++++++-------------------
 include/ufs/ufshcd.h      |  4 ++
 2 files changed, 52 insertions(+), 44 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-10-29  5:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-27  8:25 [PATCH 0/2] Untie the host lock entanglement - part 2 Avri Altman
2024-10-27  8:25 ` [PATCH 1/2] scsi: ufs: core: Introduce a new clock_gating lock Avri Altman
2024-10-28 20:04   ` Bart Van Assche
2024-10-29  5:39     ` Avri Altman
2024-10-27  8:25 ` [PATCH 2/2] scsi: ufs: core: Introduce a new clock_scaling lock Avri Altman
2024-10-28 20:06   ` Bart Van Assche
2024-10-29  5:40     ` Avri Altman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®