[PATCH 1/4] pnfs_submit: Remove nonsensical check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Only a buggy server would return a zero iomode with roc set.

Signed-off-by: Fred Isaman <iisaman@xxxxxxxxxx>
---
 fs/nfs/pnfs.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c
index 4b33cde..39bce9b 100644
--- a/fs/nfs/pnfs.c
+++ b/fs/nfs/pnfs.c
@@ -935,12 +935,8 @@ pnfs_layout_process(struct nfs4_layoutget *lgp)
 		/* FI: This needs to be re-examined.  At lo level,
 		 * all it needs is a bit indicating whether any of
 		 * the lsegs in the list have the flags set.
-		 *
-		 * The IOMODE_ANY line just seems nonsensical.
 		 */
 		lo->roc_iomode |= res->range.iomode;
-		if (!lo->roc_iomode)
-			lo->roc_iomode = IOMODE_ANY;
 	}
 
 	/* Done processing layoutget. Set the layout stateid */
-- 
1.7.2.1

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux