patch-2.4.22 linux-2.4.22/fs/nfsd/export.c
Next file: linux-2.4.22/fs/nfsd/nfsfh.c
Previous file: linux-2.4.22/fs/nfs/write.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
2003-08-25 04:44:43.000000000 -0700
- Orig file:
linux-2.4.21/fs/nfsd/export.c
- Orig date:
2002-11-28 15:53:15.000000000 -0800
diff -urN linux-2.4.21/fs/nfsd/export.c linux-2.4.22/fs/nfsd/export.c
@@ -19,6 +19,7 @@
#include <linux/stat.h>
#include <linux/in.h>
#include <linux/seq_file.h>
+#include <linux/smp_lock.h>
#include <linux/sunrpc/svc.h>
#include <linux/nfsd/nfsd.h>
@@ -571,6 +572,7 @@
svc_client *clp;
struct list_head *p;
+ lock_kernel();
exp_readlock();
if (!n--)
return (void *)1;
@@ -622,6 +624,7 @@
static void e_stop(struct seq_file *m, void *p)
{
exp_unlock();
+ unlock_kernel();
}
struct flags {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)