pnfs: readwrite uses pnfs_layout_state
nfs41_lock_stateid_arg() is now called only once in handle_read()/handle_write(), and pnfs_read()/pnfs_write() no longer depend on nfs41_open_state Signed-off-by: Casey Bodley <cbodley@citi.umich.edu>
This commit is contained in:
parent
8c3da98cde
commit
c9585d937f
5 changed files with 87 additions and 69 deletions
|
|
@ -576,7 +576,7 @@ static int handle_close(nfs41_upcall *upcall)
|
|||
|
||||
/* return associated file layouts if necessary */
|
||||
if (state->type == NF4REG)
|
||||
pnfs_open_state_close(state->session, state, args->remove);
|
||||
pnfs_layout_state_close(state->session, state, args->remove);
|
||||
|
||||
if (args->remove) {
|
||||
nfs41_component *name = &state->file.name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue