lkml.org 
[lkml]   [2022]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] scsi: hisi_sas: Fix memory ordering in hisi_sas_task_deliver()
Date
On Tue, 17 May 2022 16:04:21 +0800, John Garry wrote:

> The memories for the slot should be observed to be written prior to
> observing the slot as ready.
>
> Prior to commit 26fc0ea74fcb ("scsi: libsas: Drop SAS_TASK_AT_INITIATOR"),
> we had a spin_lock() + spin_unlock() immediately before marking the slot
> as ready. The spin_unlock() - with release semantics - caused the slot
> memory to be observed to be written.
>
> [...]

Applied to 5.19/scsi-queue, thanks!

[1/1] scsi: hisi_sas: Fix memory ordering in hisi_sas_task_deliver()
https://git.kernel.org/mkp/scsi/c/6c6ac8b7773f

--
Martin K. Petersen Oracle Linux Engineering

\
 
 \ /
  Last update: 2022-05-20 03:11    [W:0.085 / U:0.720 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site