Files
android_kernel_xiaomi_sm8450/drivers/scsi
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
..
2016-02-23 21:27:02 -05:00
2016-11-08 17:29:56 -05:00
2016-11-17 20:15:26 -05:00
2016-11-17 20:15:26 -05:00
2016-11-17 20:15:26 -05:00
2016-07-20 17:38:35 -06:00
2016-11-17 20:15:26 -05:00
2015-04-27 10:10:19 -07:00
2015-04-27 10:04:39 -07:00
2015-04-27 10:04:39 -07:00
2015-04-27 10:05:55 -07:00
2015-04-17 10:13:56 -07:00
2015-11-25 22:08:55 -05:00
2014-07-17 22:07:37 +02:00
2016-05-10 22:01:07 -04:00
2015-11-09 17:11:57 -08:00
2014-11-24 16:13:16 +01:00
2015-11-09 16:32:14 -08:00
2016-11-16 20:26:45 -05:00
2016-02-25 21:10:53 -05:00
2016-11-08 17:29:46 -05:00
2016-11-08 17:29:46 -05:00
2016-01-27 20:36:10 +08:00
2016-11-17 20:15:25 -05:00
2016-01-27 20:36:10 +08:00
2014-07-17 22:07:35 +02:00
2014-11-24 20:01:28 +01:00
2016-02-23 21:27:02 -05:00
2016-02-23 21:27:02 -05:00
2014-07-17 22:07:39 +02:00
2016-09-04 01:28:08 -04:00
2014-11-12 11:15:57 +01:00
2015-11-18 11:59:09 -05:00
2016-02-23 21:27:02 -05:00
2014-11-20 09:11:15 +01:00