[PATCH 13/14] cifs: make hard mounts the default

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

 



Allowing calls to time out is fine when a user wants that, however we
should default to the behavior that allows for the most robust operation
for applications.

Defaulting to soft means unreliable behavior for applications in the face
of reconnects. Change the default to hard mounts.

Signed-off-by: Jeff Layton <jlayton@xxxxxxxxxx>
---
 fs/cifs/connect.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index ece7275..d966976 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -899,7 +899,8 @@ cifs_parse_mount_options(char *options, const char *devname,
 	/* default to only allowing write access to owner of the mount */
 	vol->dir_mode = vol->file_mode = S_IRUGO | S_IXUGO | S_IWUSR;
 
-	/* vol->retry default is 0 (i.e. "soft" limited retry not hard retry) */
+	/* default is to retry requests indefinitely */
+	vol->retry = 1;
 	/* default is always to request posix paths. */
 	vol->posix_paths = 1;
 	/* default to using server inode numbers where available */
-- 
1.7.3.2

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


[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux