patch-2.2.4 linux/net/sunrpc/xprt.c

Next file: linux/net/unix/af_unix.c
Previous file: linux/net/sunrpc/svcsock.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.3/linux/net/sunrpc/xprt.c linux/net/sunrpc/xprt.c
@@ -1197,7 +1197,7 @@
 	static u32	xid = 0;
 
 	if (!xid)
-		xid = jiffies;
+		xid = CURRENT_TIME << 12;
 
 	dprintk("RPC: %4d reserved req %p xid %08x\n", task->tk_pid, req, xid);
 	task->tk_status = 0;
@@ -1206,6 +1206,8 @@
 	req->rq_task	= task;
 	req->rq_xprt    = xprt;
 	req->rq_xid     = xid++;
+	if (!xid)
+		xid++;
 }
 
 /*

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