• NeilBrown's avatar
    SUNRPC: change svc_recv() to return void. · 7b719e2b
    NeilBrown authored
    svc_recv() currently returns a 0 on success or one of two errors:
     - -EAGAIN means no message was successfully received
     - -EINTR means the thread has been told to stop
    
    Previously nfsd would stop as the result of a signal as well as
    following kthread_stop().  In that case the difference was useful: EINTR
    means stop unconditionally.  EAGAIN means stop if kthread_should_stop(),
    continue otherwise.
    
    Now threads only exit when kthread_should_stop() so we don't need the
    distinction.
    Signed-off-by: default avatarNeilBrown <neilb@suse.de>
    Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
    7b719e2b
nfssvc.c 26.3 KB