patch-2.3.99-pre7 linux/fs/coda/psdev.c
Next file: linux/fs/coda/symlink.c
Previous file: linux/fs/coda/pioctl.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Wed May 10 16:56:43 2000
- Orig file:
v2.3.99-pre6/linux/fs/coda/psdev.c
- Orig date:
Tue Mar 14 19:10:40 2000
diff -u --recursive --new-file v2.3.99-pre6/linux/fs/coda/psdev.c linux/fs/coda/psdev.c
@@ -35,6 +35,7 @@
#include <linux/poll.h>
#include <linux/init.h>
#include <linux/list.h>
+#include <linux/smp_lock.h>
#include <asm/io.h>
#include <asm/segment.h>
#include <asm/system.h>
@@ -144,7 +145,9 @@
return -EFAULT;
/* what downcall errors does Venus handle ? */
+ lock_kernel();
error = coda_downcall(hdr.opcode, dcbuf, sb);
+ unlock_kernel();
if ( error) {
printk("psdev_write: coda_downcall error: %d\n",
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)