• NeilBrown's avatar
    SUNRPC: remove timeout arg from svc_recv() · c743b425
    NeilBrown authored
    Most svc threads have no interest in a timeout.
    nfsd sets it to 1 hour, but this is a wart of no significance.
    
    lockd uses the timeout so that it can call nlmsvc_retry_blocked().
    It also sometimes calls svc_wake_up() to ensure this is called.
    
    So change lockd to be consistent and always use svc_wake_up() to trigger
    nlmsvc_retry_blocked() - using a timer instead of a timeout to
    svc_recv().
    
    And change svc_recv() to not take a timeout arg.
    
    This makes the sp_threads_timedout counter always zero.
    Signed-off-by: default avatarNeilBrown <neilb@suse.de>
    Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
    c743b425
callback.c 9.92 KB