On Mon, Nov 7, 2016 at 8:48 PM, John Garry <[email protected]> wrote:
> 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]>

Reply via email to