alistair23-linux/drivers/scsi/hisi_sas
John Garry f696cc32b5 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 <john.garry@huawei.com>
Reviewed-by: Xiang Chen <chenxiang66@hisilicon.com>
Reviewed-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2016-11-25 09:54:40 -05:00
..
hisi_sas.h scsi: hisi_sas: use atomic64_t for hisi_sas_device.running_req 2016-11-25 09:54:40 -05:00
hisi_sas_main.c scsi: hisi_sas: use atomic64_t for hisi_sas_device.running_req 2016-11-25 09:54:40 -05:00
hisi_sas_v1_hw.c scsi: hisi_sas: use atomic64_t for hisi_sas_device.running_req 2016-11-25 09:54:40 -05:00
hisi_sas_v2_hw.c scsi: hisi_sas: use atomic64_t for hisi_sas_device.running_req 2016-11-25 09:54:40 -05:00
Kconfig hisi_sas: add dependency for HAS_IOMEM 2016-01-26 21:17:59 -05:00
Makefile hisi_sas: add bare v2 hw driver 2016-02-23 21:27:02 -05:00