[Devel] [PATCH RHEL7 COMMIT] fs/nfs: charge lock in nfds4_layout_setlease()

Konstantin Khorenko khorenko at virtuozzo.com
Mon Nov 14 01:37:12 PST 2016


The commit is pushed to "branch-rh7-3.10.0-327.36.1.vz7.19.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-327.36.1.vz7.19.8
------>
commit 1cf1a6f2f2d98b65da135489c7e54c740aceb990
Author: Dmitry Safonov <dsafonov at virtuozzo.com>
Date:   Fri Nov 11 16:11:46 2016 +0400

    fs/nfs: charge lock in nfds4_layout_setlease()
    
    It's not from this rebase: accounting for nfsd lease also missed in
    previous vz kernel. I belive, it means that no one tried compilation
    with CONFIG_NFSD_PNFS, under which nfs4layouts.o is.
    
    To be merged into Initial patchset.
    
    Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>
---
 fs/nfsd/nfs4layouts.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/nfsd/nfs4layouts.c b/fs/nfsd/nfs4layouts.c
index 5acf598..16dd049 100644
--- a/fs/nfsd/nfs4layouts.c
+++ b/fs/nfsd/nfs4layouts.c
@@ -159,7 +159,7 @@ nfsd4_layout_setlease(struct nfs4_layout_stateid *ls)
 	struct file_lock *fl;
 	int status;
 
-	fl = locks_alloc_lock();
+	fl = locks_alloc_lock(1);
 	if (!fl)
 		return -ENOMEM;
 	locks_init_lock(fl);


More information about the Devel mailing list