Patch "mm/z3fold: use release_z3fold_page_locked() to release locked z3fold page" has been added to the 5.13-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    mm/z3fold: use release_z3fold_page_locked() to release locked z3fold page

to the 5.13-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     mm-z3fold-use-release_z3fold_page_locked-to-release-.patch
and it can be found in the queue-5.13 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit d81bd644c2a77d3d34ba28185bdfb8cc4d2e4f24
Author: Miaohe Lin <linmiaohe@xxxxxxxxxx>
Date:   Wed Jun 30 18:50:39 2021 -0700

    mm/z3fold: use release_z3fold_page_locked() to release locked z3fold page
    
    [ Upstream commit 28473d91ff7f686d58047ff55f2fa98ab59114a4 ]
    
    We should use release_z3fold_page_locked() to release z3fold page when
    it's locked, although it looks harmless to use release_z3fold_page() now.
    
    Link: https://lkml.kernel.org/r/20210619093151.1492174-7-linmiaohe@xxxxxxxxxx
    Fixes: dcf5aedb24f8 ("z3fold: stricter locking and more careful reclaim")
    Signed-off-by: Miaohe Lin <linmiaohe@xxxxxxxxxx>
    Reviewed-by: Vitaly Wool <vitaly.wool@xxxxxxxxxxxx>
    Cc: Hillf Danton <hdanton@xxxxxxxx>
    Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/mm/z3fold.c b/mm/z3fold.c
index 33d8487ef6a8..ed0023dc5a3d 100644
--- a/mm/z3fold.c
+++ b/mm/z3fold.c
@@ -1383,7 +1383,7 @@ static int z3fold_reclaim_page(struct z3fold_pool *pool, unsigned int retries)
 			if (zhdr->foreign_handles ||
 			    test_and_set_bit(PAGE_CLAIMED, &page->private)) {
 				if (kref_put(&zhdr->refcount,
-						release_z3fold_page))
+						release_z3fold_page_locked))
 					atomic64_dec(&pool->pages_nr);
 				else
 					z3fold_page_unlock(zhdr);



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux