From 47ff10aa57844450652d873e4e6b365067fad3c1 Mon Sep 17 00:00:00 2001 From: Olga Kornievskaia Date: Tue, 28 Feb 2012 14:14:26 -0500 Subject: [PATCH] [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. --- daemon/acl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/acl.c b/daemon/acl.c index 743e4e3..0ef5f01 100644 --- a/daemon/acl.c +++ b/daemon/acl.c @@ -776,7 +776,7 @@ static int handle_setacl(nfs41_upcall *upcall) /* break read delegations before SETATTR */ nfs41_delegation_return(state->session, &state->file, - OPEN_DELEGATE_READ, FALSE); + OPEN_DELEGATE_WRITE, FALSE); nfs41_open_stateid_arg(state, &stateid); status = nfs41_setattr(state->session, &state->file, &stateid, &info);