patch-2.3.1 linux/fs/select.c

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

diff -u --recursive --new-file v2.3.0/linux/fs/select.c linux/fs/select.c
@@ -58,7 +58,7 @@
 	}
 }
 
-void __pollwait(struct file * filp, struct wait_queue ** wait_address, poll_table *p)
+void __pollwait(struct file * filp, wait_queue_head_t * wait_address, poll_table *p)
 {
 	for (;;) {
 		if (p->nr < __MAX_POLL_TABLE_ENTRIES) {
@@ -68,8 +68,7 @@
 		 	entry->filp = filp;
 		 	filp->f_count++;
 			entry->wait_address = wait_address;
-			entry->wait.task = current;
-			entry->wait.next = NULL;
+			init_waitqueue_entry(&entry->wait, current);
 			add_wait_queue(wait_address,&entry->wait);
 			p->nr++;
 			return;

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