Networking Forums

Networking Forums > Computer Networking > Linux Networking > NFS/RPC on Linux - Where does it sleep ?

Reply
Thread Tools Display Modes

NFS/RPC on Linux - Where does it sleep ?

 
 
google
Guest
Posts: n/a

 
      10-28-2004, 08:22 AM
I'm working on RedHat Linux, 2.4.20 kernel.
I'm trying to understand where the read operation on NFS sleeps
while waiting for the results of the read.

The caller goes to sys_read(), then eventually to nfs_readpage_async(),
then eventually to nfs_list_add_request(). But I can't make out where
it sleeps while the request is going on. struct rpc_task has a field
called tk_exit which points to the callback routine which is
nfs_readpage_result(). Where does the read operation sleep in NFS ?

On the other side of the operation, when the reply comes in from the network,
the packets make their way from the NIC driver, to IP, to UDP, then at
some point, it ends up in the callback routine. However I don't see
a "wake". Where should it be ?

My bigger goal is to catch the read buffer and see what NFS is receiving.
I know that the result of my read request comes in as three packets.
So I'm trying to see what those packets look like when NFS receives them.
The bug I'm trying to track down is a corruption in one of those packets.
AFAIK, the packets are clean on the wire. I'm using the ethereal tool.

If you can tell me where the NFS read operation sleeps & gets woken up,
perhaps I can look at the read buffer at that point. If you need more
info, pls let me know.

thank you
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sleep problems Kat IE Broadband Hardware 0 10-16-2008 01:24 AM
Computers talking in their sleep james.thompson Windows Networking 1 06-01-2006 03:15 PM
Router's going to sleep. Veritech Wireless Networks 4 01-08-2005 04:31 PM
XP Network drives 'going to sleep' Clive Home Networking 1 11-03-2004 08:43 PM
No Signal Problem After Sleep JG Wireless Internet 0 02-29-2004 03:26 AM



1 2 3 4 5 6 7 8 9 10 11