diff options
author | Henry Burns <henryburns@google.com> | 2019-08-25 03:54:37 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-08-25 05:48:42 +0300 |
commit | d776aaa9895eb6eb770908e899cb7f5bd5025b3c (patch) | |
tree | f1a7e0d904768ba84f4532ecc905ec400289a9d1 /Documentation/translations/zh_CN/process | |
parent | 361469211f876e67d7ca3d3d29e6d1c3e313d0f1 (diff) | |
download | linux-d776aaa9895eb6eb770908e899cb7f5bd5025b3c.tar.xz |
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 'Documentation/translations/zh_CN/process')
0 files changed, 0 insertions, 0 deletions