The NFSv4.1 server should return NFSERR_BACKCHANBUSY instead of NFS_OK.
When an NFSv4.1 session is busy due to a callback being in progress, nfsrv_freesession() should return NFSERR_BACKCHANBUSY instead of NFS_OK. The only effect this has is that the DestroySession operation will report the failure for this case and this probably has little or no effect on a client. Spotted by inspection and no failures related to this have been reported. MFC after: 2 months
This commit is contained in:
parent
0c0288a218
commit
bb3436966a
@ -5982,7 +5982,7 @@ nfsrv_freesession(struct nfsdsession *sep, uint8_t *sessionid)
|
||||
if (sep->sess_refcnt > 0) {
|
||||
NFSUNLOCKSESSION(shp);
|
||||
NFSUNLOCKSTATE();
|
||||
return (0);
|
||||
return (NFSERR_BACKCHANBUSY);
|
||||
}
|
||||
LIST_REMOVE(sep, sess_hash);
|
||||
LIST_REMOVE(sep, sess_list);
|
||||
|
Loading…
x
Reference in New Issue
Block a user