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:
parent
7d9b32cd78
commit
7d7d641283
1 changed files with 1 additions and 0 deletions
|
|
@ -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 ||
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue