Patch "filelock: fix name of file_lease slab cache" has been added to the 6.10-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

    filelock: fix name of file_lease slab cache

to the 6.10-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:
     filelock-fix-name-of-file_lease-slab-cache.patch
and it can be found in the queue-6.10 subdirectory.

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



commit aad802c664867c00812d0e0166b0327fde317344
Author: Omar Sandoval <osandov@xxxxxx>
Date:   Mon Jul 29 15:48:12 2024 -0700

    filelock: fix name of file_lease slab cache
    
    [ Upstream commit 3f65f3c099bcb27949e712f39ba836f21785924a ]
    
    When struct file_lease was split out from struct file_lock, the name of
    the file_lock slab cache was copied to the new slab cache for
    file_lease. This name conflict causes confusion in /proc/slabinfo and
    /sys/kernel/slab. In particular, it caused failures in drgn's test case
    for slab cache merging.
    
    Link: https://github.com/osandov/drgn/blob/9ad29fd86499eb32847473e928b6540872d3d59a/tests/linux_kernel/helpers/test_slab.py#L81
    Fixes: c69ff4071935 ("filelock: split leases out of struct file_lock")
    Signed-off-by: Omar Sandoval <osandov@xxxxxx>
    Link: https://lore.kernel.org/r/2d1d053da1cafb3e7940c4f25952da4f0af34e38.1722293276.git.osandov@xxxxxx
    Reviewed-by: Chuck Lever <chuck.lever@xxxxxxxxxx>
    Reviewed-by: Jeff Layton <jlayton@xxxxxxxxxx>
    Signed-off-by: Christian Brauner <brauner@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/fs/locks.c b/fs/locks.c
index 9afb16e0683ff..e45cad40f8b6b 100644
--- a/fs/locks.c
+++ b/fs/locks.c
@@ -2984,7 +2984,7 @@ static int __init filelock_init(void)
 	filelock_cache = kmem_cache_create("file_lock_cache",
 			sizeof(struct file_lock), 0, SLAB_PANIC, NULL);
 
-	filelease_cache = kmem_cache_create("file_lock_cache",
+	filelease_cache = kmem_cache_create("file_lease_cache",
 			sizeof(struct file_lease), 0, SLAB_PANIC, NULL);
 
 	for_each_possible_cpu(i) {




[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