From: Andrew Morton Date: Tue, 25 Feb 2025 06:53:31 +0000 (-0800) Subject: nfs-fix-nfs_release_folio-to-not-deadlock-via-kcompactd-writeback-fix X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=ded4b48dd1fa75ad6291b8dcaa24aa60e48230af;p=users%2Fjedix%2Flinux-maple.git nfs-fix-nfs_release_folio-to-not-deadlock-via-kcompactd-writeback-fix fix build Cc: Anna Schumaker Cc: Mike Snitzer Cc: Trond Myklebust Signed-off-by: Andrew Morton --- diff --git a/mm/compaction.c b/mm/compaction.c index bc17dec39ccf..a3203d97123e 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -3181,7 +3181,7 @@ static int kcompactd(void *p) long default_timeout = msecs_to_jiffies(HPAGE_FRAG_CHECK_INTERVAL_MSEC); long timeout = default_timeout; - tsk->flags |= PF_KCOMPACTD; + current->flags |= PF_KCOMPACTD; set_freezable(); pgdat->kcompactd_max_order = 0; @@ -3238,7 +3238,7 @@ static int kcompactd(void *p) pgdat->proactive_compact_trigger = false; } - tsk->flags &= ~PF_KCOMPACTD; + current->flags &= ~PF_KCOMPACTD; return 0; }