summaryrefslogtreecommitdiff
path: root/tools/build/feature/test-sync-compare-and-swap.c
diff options
context:
space:
mode:
authorJon Cooper <jcooper@solarflare.com>2017-02-08 16:51:33 +0000
committerDavid S. Miller <davem@davemloft.net>2017-02-09 16:47:53 -0500
commit0ca2b46dbb645c1aa23eda6f5ac49a7be31ac87d (patch)
treec9264574c790e8221f3d6e706060c908ba452160 /tools/build/feature/test-sync-compare-and-swap.c
parent8a531400623c52b09bc3b718e9a6142eb60a11a7 (diff)
sfc: call mcdi_reboot_detected() when MC reboots during an MCDI command
This function wasn't being called in this particular case when the MC reboots. This caused resource reallocations to not be handled properly and often ended up disabling the interface. Signed-off-by: Edward Cree <ecree@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/build/feature/test-sync-compare-and-swap.c')
0 files changed, 0 insertions, 0 deletions
) and no requests. However, conditions at the time of the race are count of PERCPU_COUNT_BIAS + 0 and __PERCPU_REF_DEAD and __PERCPU_REF_ATOMIC set. The fix is to make the tryget routines use an actual boolean internally instead of the atomic long result truncated to a int. Fixes: e625305b3907 percpu-refcount: make percpu_ref based on longs instead of ints Link: https://bugzilla.kernel.org/show_bug.cgi?id=190751 Signed-off-by: Douglas Miller <dougmill@linux.vnet.ibm.com> Reviewed-by: Jens Axboe <axboe@fb.com> Signed-off-by: Tejun Heo <tj@kernel.org> Fixes: e625305b3907 ("percpu-refcount: make percpu_ref based on longs instead of ints") Cc: stable@vger.kernel.org # v3.18+
Diffstat (limited to 'include/trace/events/oom.h')