rmdir: use normal delete upcall instead of close

caused memory leaks of nfs41_open_state.  we have the FileDispositionInformation upcall for exactly this, so there's no need to complicate the close code path

Signed-off-by: Casey Bodley <cbodley@citi.umich.edu>
This commit is contained in:
Casey Bodley 2010-10-12 09:59:34 -04:00
parent d1169b1f6b
commit 5dc1b43191
2 changed files with 4 additions and 23 deletions

View file

@ -431,8 +431,7 @@ int handle_close(nfs41_upcall *upcall)
}
}
if (args->state->type == NF4REG || !args->remove)
free_open_state(state->session, state);
free_open_state(state->session, state);
if (status || !rm_status)
return status;
else