summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-sql.py
diff options
context:
space:
mode:
authorXiaofei Tan <tanxiaofei@huawei.com>2018-07-18 17:14:32 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2018-07-20 04:57:40 +0300
commit1c09b663168bb5fd8562234976b76115f2aebe91 (patch)
tree30bf000df9f25ff678abbe32a6569ea07f0c8e0a /tools/perf/scripts/python/call-graph-from-sql.py
parent6cca51ee0aa2540d648ff8698c3889330d897f27 (diff)
downloadlinux-1c09b663168bb5fd8562234976b76115f2aebe91.tar.xz
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 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions