aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorJan Kara <[email protected]>2014-04-03 14:46:23 -0700
committerLinus Torvalds <[email protected]>2014-04-03 16:20:49 -0700
commit5acda9d12dcf1ad0d9a5a2a7c646de3472fa7555 (patch)
tree5103d2779fbf2f1f07edb1ed51083d1303073ef9 /tools/perf/scripts/python/net_dropmonitor.py
parent6ca738d60c563d5c6cf6253ee4b8e76fa77b2b9e (diff)
bdi: avoid oops on device removal
After commit 839a8e8660b6 ("writeback: replace custom worker pool implementation with unbound workqueue") when device is removed while we are writing to it we crash in bdi_writeback_workfn() -> set_worker_desc() because bdi->dev is NULL. This can happen because even though bdi_unregister() cancels all pending flushing work, nothing really prevents new ones from being queued from balance_dirty_pages() or other places. Fix the problem by clearing BDI_registered bit in bdi_unregister() and checking it before scheduling of any flushing work. Fixes: 839a8e8660b6777e7fe4e80af1a048aebe2b5977 Reviewed-by: Tejun Heo <[email protected]> Signed-off-by: Jan Kara <[email protected]> Cc: Derek Basehore <[email protected]> Cc: Jens Axboe <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions