patch-2.3.99-pre6 linux/fs/select.c

Next file: linux/fs/smbfs/file.c
Previous file: linux/fs/romfs/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre5/linux/fs/select.c linux/fs/select.c
@@ -194,7 +194,6 @@
 	retval = 0;
 	for (;;) {
 		set_current_state(TASK_INTERRUPTIBLE);
-		lock_kernel();
 		for (i = 0 ; i < n; i++) {
 			unsigned long bit = BIT(i);
 			unsigned long mask;
@@ -227,7 +226,6 @@
 				wait = NULL;
 			}
 		}
-		unlock_kernel();
 		wait = NULL;
 		if (retval || !__timeout || signal_pending(current))
 			break;
@@ -462,9 +460,7 @@
 			goto out_fds1;
 	}
 
-	lock_kernel();
 	fdcount = do_poll(nfds, nchunks, nleft, fds, wait, timeout);
-	unlock_kernel();
 
 	/* OK, now copy the revents fields back to user space. */
 	for(i=0; i < nchunks; i++)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)