Hi Alan,
The following patch makes /proc/locks report the correct pid
of processes taking flock(2) locks.
diff -ruN 2.4.0-test1-ac18/fs/locks.c 2.4.0-test1-ac18-sfr/fs/locks.c
--- 2.4.0-test1-ac18/fs/locks.c Wed Jun 14 12:00:31 2000
+++ 2.4.0-test1-ac18-sfr/fs/locks.c Wed Jun 14 12:03:41 2000
@@ -190,6 +190,7 @@
fl->fl_owner = NULL;
fl->fl_file = filp;
+ fl->fl_pid = current->pid;
fl->fl_flags = FL_FLOCK;
fl->fl_type = type;
fl->fl_start = 0;
Cheers,
Stephen
-- Stephen Rothwell, Open Source Project Engineer, Linuxcare, Inc. +61-2-62628990 tel, +61-2-62628991 fax sfr@linuxcare.com, http://www.linuxcare.com/ Linuxcare. Support for the revolution.- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Thu Jun 15 2000 - 21:00:30 EST