pnfs: update layout state on layoutget/return/recall
on a successful LAYOUTGET, file_layout_fetch() calls layout_update() to copy the first layout segment returned and update the layout stateid on a successful LAYOUTRETURN, file_layout_return() frees the layout segment and updates/clears the stateid Signed-off-by: Casey Bodley <cbodley@citi.umich.edu>
This commit is contained in:
parent
159ad405bb
commit
8c3da98cde
3 changed files with 233 additions and 113 deletions
|
|
@ -91,7 +91,7 @@ typedef struct __nfs41_open_state {
|
|||
bool_t do_close;
|
||||
stateid4 stateid;
|
||||
state_owner4 owner;
|
||||
struct __pnfs_file_layout *layout;
|
||||
struct __pnfs_layout_state *layout;
|
||||
struct list_entry client_entry; /* entry in nfs41_client.opens */
|
||||
SRWLOCK lock;
|
||||
LONG ref_count;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue