diff mbox

[5/9] FIXME: roc should return layout on last close

Message ID 1292437907-21823-1-git-send-email-bhalevy@panasas.com
State RFC, archived
Headers show

Commit Message

Benny Halevy Dec. 15, 2010, 6:31 p.m. UTC
None
diff mbox

Patch

diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c
index 6a1eb41..dc62928 100644
--- a/fs/nfs/nfs4state.c
+++ b/fs/nfs/nfs4state.c
@@ -622,6 +622,7 @@  static void __nfs4_close(struct path *path, struct nfs4_state *state,
 		u32 roc_iomode;
 		struct nfs_inode *nfsi = NFS_I(state->inode);
 
+		/* FIXME: should return the layout only on last close */
 		if (has_layout(nfsi) &&
 		    (roc_iomode = pnfs_layout_roc_iomode(nfsi)) != 0) {
 			struct pnfs_layout_range range = {