patch-2.1.23 linux/fs/nfs/rpcsock.c
Next file: linux/fs/open.c
Previous file: linux/fs/nfs/nfsroot.c
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Sat Jan 25 23:46:13 1997
- Orig file:
v2.1.22/linux/fs/nfs/rpcsock.c
- Orig date:
Thu Jan 23 21:06:51 1997
diff -u --recursive --new-file v2.1.22/linux/fs/nfs/rpcsock.c linux/fs/nfs/rpcsock.c
@@ -40,6 +40,7 @@
#include <linux/net.h>
#include <linux/mm.h>
#include <linux/rpcsock.h>
+#include <linux/poll.h>
#include <linux/udp.h>
#include <net/sock.h>
@@ -159,21 +160,20 @@
/*
* This code is slightly complicated. Since the networking code does not
- * honor the current->timeout value, we have to select on the socket.
+ * honor the current->timeout value, we have to poll on the socket.
*/
static inline int
rpc_select(struct rpc_sock *rsock)
{
- struct select_table_entry entry;
+ struct poll_table_entry entry;
struct file *file = rsock->file;
- select_table wait_table;
+ poll_table wait_table;
- dprintk("RPC: selecting on socket...\n");
+ dprintk("RPC: polling socket...\n");
wait_table.nr = 0;
wait_table.entry = &entry;
current->state = TASK_INTERRUPTIBLE;
- if (!file->f_op->select(file->f_inode, file, SEL_IN, &wait_table)
- && !file->f_op->select(file->f_inode, file, SEL_IN, NULL)) {
+ if (!(file->f_op->poll(file, &wait_table) & POLLIN)) {
schedule();
remove_wait_queue(entry.wait_address, &entry.wait);
current->state = TASK_RUNNING;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov