aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorJacob Keller <[email protected]>2013-09-21 05:05:39 +0000
committerJeff Kirsher <[email protected]>2013-10-29 02:40:21 -0700
commit80c33ddd31d0e801953e02b7b003f395c1920e4e (patch)
tree4f80ae0bdf146705c932aa039fcb48d47626478e /tools/perf/scripts/python/sched-migration.py
parente6cd988c27bb5918630db67b3526c9e78e786818 (diff)
net: add might_sleep() call to napi_disable
napi_disable uses an msleep() call to wait for outstanding napi work to be finished after setting the disable bit. It does not always sleep incase there was no outstanding work. This resulted in a rare bug in ixgbe_down operation where a napi_disable call took place inside of a local_bh_disable()d context. In order to enable easier detection of future sleep while atomic BUGs, this patch adds a might_sleep() call, so that every use of napi_disable during atomic context will be visible. Signed-off-by: Jacob Keller <[email protected]> Cc: Eliezer Tamir <[email protected]> Cc: Alexander Duyck <[email protected]> Cc: Hyong-Youb Kim <[email protected]> Cc: Amir Vadai <[email protected]> Cc: Dmitry Kravkov <[email protected]> Tested-by: Phil Schmitt <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions