aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorJohn Garry <[email protected]>2016-11-07 20:48:39 +0800
committerMartin K. Petersen <[email protected]>2016-11-25 09:54:40 -0500
commitf696cc32b5984eb73f6b1ff81929ca9e5ea22d6d (patch)
tree387bef15e11b8bd3ea913f6983596de20cf22298 /scripts/gcc-plugins/cyc_complexity_plugin.c
parent04708ff4c29522927de46424637e5a7c835a2e88 (diff)
scsi: hisi_sas: use atomic64_t for hisi_sas_device.running_req
Sometimes the value of hisi_sas_device.running_req would go negative unless we have the check for running_req >= 0 before trying to decrement. This is because using running_req is not thread-safe. As such, the value for running_req may be actually incorrect, so use atomic64_t instead. Signed-off-by: John Garry <[email protected]> Reviewed-by: Xiang Chen <[email protected]> Reviewed-by: Zhangfei Gao <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions