patch-pre2.0.11 linux/fs/locks.c
Next file: linux/fs/ncpfs/dir.c
Previous file: linux/fs/ext2/ioctl.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Sat Jun 1 20:11:02 1996
- Orig file:
pre2.0.10/linux/fs/locks.c
- Orig date:
Fri May 17 15:32:18 1996
diff -u --recursive --new-file pre2.0.10/linux/fs/locks.c linux/fs/locks.c
@@ -82,6 +82,9 @@
* be compiled with different options than the kernel itself.
* Andy Walker (andy@lysaker.kvaerner.no), May 15, 1996.
*
+ * Added a couple of missing wake_up() calls.
+ * Andy Walker (andy@lysaker.kvaerner.no), May 15, 1996.
+ *
* TODO: Do not honour mandatory locks on remote file systems. This matches
* the SVR4 semantics and neatly sidesteps a pile of awkward issues that
* would otherwise have to be addressed.
@@ -882,9 +885,12 @@
locks_insert_lock(before, left);
}
right->fl_start = caller->fl_end + 1;
+ wake_up(&right->fl_wait);
}
- if (left)
+ if (left) {
left->fl_end = caller->fl_start - 1;
+ wake_up(&left->fl_wait);
+ }
return (0);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this