diff options
author | 2019-08-24 17:54:37 -0700 | |
---|---|---|
committer | 2019-08-24 19:48:42 -0700 | |
commit | d776aaa9895eb6eb770908e899cb7f5bd5025b3c (patch) | |
tree | f1a7e0d904768ba84f4532ecc905ec400289a9d1 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge tag 'hyperv-fixes-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux (diff) | |
download | linux-dev-d776aaa9895eb6eb770908e899cb7f5bd5025b3c.tar.xz linux-dev-d776aaa9895eb6eb770908e899cb7f5bd5025b3c.zip |
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/20190809213828.202833-1-henryburns@google.com
Signed-off-by: Henry Burns <henryburns@google.com>
Cc: Vitaly Wool <vitalywool@gmail.com>
Cc: Shakeel Butt <shakeelb@google.com>
Cc: Jonathan Adams <jwadams@google.com>
Cc: Henry Burns <henrywolfeburns@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions