patch-2.3.16 linux/fs/ncpfs/sock.c

Next file: linux/fs/nfs/nfsroot.c
Previous file: linux/fs/ncpfs/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.15/linux/fs/ncpfs/sock.c linux/fs/ncpfs/sock.c
@@ -172,7 +172,10 @@
 	      re_select:
 		wait_table.nr = 0;
 		wait_table.entry = &entry;
-		current->state = TASK_INTERRUPTIBLE;
+		/* mb() is not necessary because ->poll() will serialize
+		   instructions adding the wait_table waitqueues in the
+		   waitqueue-head before going to calculate the mask-retval. */
+		__set_current_state(TASK_INTERRUPTIBLE);
 		if (!(file->f_op->poll(file, &wait_table) & POLLIN)) {
 			int timed_out;
 			if (timeout > max_timeout) {

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