[acl] return a write delegation on setacl

we were only returning a read delegation, when we try to do a setacl.

at cthon2012, we were getting cb_recalls when we had a write delegation.
This commit is contained in:
Olga Kornievskaia 2012-02-28 14:14:26 -05:00
parent 88d6678f93
commit 47ff10aa57

View file

@ -776,7 +776,7 @@ static int handle_setacl(nfs41_upcall *upcall)
/* break read delegations before SETATTR */ /* break read delegations before SETATTR */
nfs41_delegation_return(state->session, &state->file, nfs41_delegation_return(state->session, &state->file,
OPEN_DELEGATE_READ, FALSE); OPEN_DELEGATE_WRITE, FALSE);
nfs41_open_stateid_arg(state, &stateid); nfs41_open_stateid_arg(state, &stateid);
status = nfs41_setattr(state->session, &state->file, &stateid, &info); status = nfs41_setattr(state->session, &state->file, &stateid, &info);