diff options
author | Henry Burns <[email protected]> | 2019-08-24 17:54:37 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2019-08-24 19:48:42 -0700 |
commit | d776aaa9895eb6eb770908e899cb7f5bd5025b3c (patch) | |
tree | f1a7e0d904768ba84f4532ecc905ec400289a9d1 /tools/perf/util/trace-event-scripting.c | |
parent | 361469211f876e67d7ca3d3d29e6d1c3e313d0f1 (diff) |
mm/z3fold.c: fix race between migration and destruction
In z3fold_destroy_pool() we call destroy_workqueue(&pool->compact_wq).
However, we have no guarantee that migration isn't happening in the
background at that time.
Migration directly calls queue_work_on(pool->compact_wq), if destruction
wins that race we are using a destroyed workqueue.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Henry Burns <[email protected]>
Cc: Vitaly Wool <[email protected]>
Cc: Shakeel Butt <[email protected]>
Cc: Jonathan Adams <[email protected]>
Cc: Henry Burns <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions