[Devel] [PATCH rh7] locks: check for fl->fl_owner != filp in show_fd_locks

Stanislav Kinsburskiy skinsbursky at virtuozzo.com
Mon Jun 20 04:51:52 PDT 2016


NFS emulates flocks via posix lock on server and fl->fl_owner is set to filp.

Signed-off-by: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
---
 fs/locks.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/locks.c b/fs/locks.c
index cb7da61..a5ab0c0 100644
--- a/fs/locks.c
+++ b/fs/locks.c
@@ -2503,6 +2503,7 @@ void show_fd_locks(struct seq_file *f,
 		 * matches ->fl_file.
 		 */
 		if (fl->fl_owner != files &&
+		    fl->fl_owner != (fl_owner_t)filp &&
 		    fl->fl_owner != NULL)
 			continue;
 



More information about the Devel mailing list