return file delegation on open

callback code is not up to handling recall of delegations via the
callback channel. thus return file delegation if it was returned on
open.
This commit is contained in:
U-fast\aglo 2010-10-12 11:12:42 -04:00 committed by unknown
parent 7d9b32cd78
commit 7d7d641283

View file

@ -394,6 +394,7 @@ int nfs41_open(
info, &open_res.resok4.cinfo); info, &open_res.resok4.cinfo);
ReleaseSRWLockShared(&state->path.lock); ReleaseSRWLockShared(&state->path.lock);
#define RETURN_DELEG_ON_OPEN
#ifdef RETURN_DELEG_ON_OPEN #ifdef RETURN_DELEG_ON_OPEN
/* if the server gave us a delegation, return it immediately */ /* if the server gave us a delegation, return it immediately */
if (open_res.resok4.delegation_type == OPEN_DELEGATE_READ || if (open_res.resok4.delegation_type == OPEN_DELEGATE_READ ||