• J. Bruce Fields's avatar
    nfsd4: don't sleep in lease-break callback · b5a1a81e
    J. Bruce Fields authored
    The NFSv4 server's fl_break callback can sleep (dropping the BKL), in
    order to allocate a new rpc task to send a recall to the client.
    
    As far as I can tell this doesn't cause any races in the current code,
    but the analysis is difficult.  Also, the sleep here may complicate the
    move away from the BKL.
    
    So, just schedule some work to do the job for us instead.  The work will
    later also prove useful for restarting a call after the callback
    information is changed.
    Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
    b5a1a81e
nfs4state.c 108 KB