patch-2.4.3 linux/drivers/sgi/char/shmiq.c
Next file: linux/drivers/sound/Config.in
Previous file: linux/drivers/sgi/char/graphics.c
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
Mon Mar 19 12:35:09 2001
- Orig file:
v2.4.2/linux/drivers/sgi/char/shmiq.c
- Orig date:
Wed Jul 12 21:58:43 2000
diff -u --recursive --new-file v2.4.2/linux/drivers/sgi/char/shmiq.c linux/drivers/sgi/char/shmiq.c
@@ -286,11 +286,11 @@
s = req.arg * sizeof (struct shmqevent) +
sizeof (struct sharedMemoryInputQueue);
v = sys_munmap (vaddr, s);
- down(¤t->mm->mmap_sem);
+ down_write(¤t->mm->mmap_sem);
do_munmap(current->mm, vaddr, s);
do_mmap(filp, vaddr, s, PROT_READ | PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 0);
- up(¤t->mm->mmap_sem);
+ up_write(¤t->mm->mmap_sem);
shmiqs[minor].events = req.arg;
shmiqs[minor].mapped = 1;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)