• Jeff Layton's avatar
    nfsd: treat all shutdown signals as equivalent · 100766f8
    Jeff Layton authored
    knfsd currently uses 2 signal masks when processing requests. A "loose"
    mask (SHUTDOWN_SIGS) that it uses when receiving network requests, and
    then a more "strict" mask (ALLOWED_SIGS, which is just SIGKILL) that it
    allows when doing the actual operation on the local storage.
    
    This is apparently unnecessarily complicated. The underlying filesystem
    should be able to sanely handle a signal in the middle of an operation.
    This patch removes the signal mask handling from knfsd altogether. When
    knfsd is started as a kthread, all signals are ignored. It then allows
    all of the signals in SHUTDOWN_SIGS. There's no need to set the mask
    as well.
    Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
    Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
    100766f8
nfssvc.c 13.4 KB