summaryrefslogtreecommitdiffstats
path: root/drivers/message
diff options
context:
space:
mode:
authorXiaofei Tan <tanxiaofei@huawei.com>2018-07-18 22:14:32 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2018-07-19 21:57:40 -0400
commit1c09b663168bb5fd8562234976b76115f2aebe91 (patch)
tree30bf000df9f25ff678abbe32a6569ea07f0c8e0a /drivers/message
parent6cca51ee0aa2540d648ff8698c3889330d897f27 (diff)
downloadlinux-1c09b663168bb5fd8562234976b76115f2aebe91.tar.bz2
scsi: hisi_sas: add memory barrier in task delivery function
In task start delivery function, we need to add a memory barrier to prevent re-ordering of reading memory by hardware. Because the slot data is set in task prepare function and it could be running in another CPU. This patch adds an memory barrier after s->ready is read in the task start delivery function, and uses WRITE_ONCE() in the places where s->ready is set to ensure that the compiler does not re-order. Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com> Signed-off-by: John Garry <john.garry@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/message')
0 files changed, 0 insertions, 0 deletions