aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsfs.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-03-23 12:07:15 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-03-23 12:07:15 -0400
commit1c3ddfe5ab886c4dc0443535e95ad8e41c41d0e5 (patch)
treec6684be0e98deb7220153c410be7c1fb7cb0dbbf /fs/cifs/cifsfs.c
parentf63d395d47f37a4fe771e6d4b1db9d2cdae5ffc5 (diff)
parent3dd933061d3a4f33fb6ba1616e88fa55a8b8cb9c (diff)
Merge git://git.samba.org/sfrench/cifs-2.6
Pull CIFS fixes from Steve French * git://git.samba.org/sfrench/cifs-2.6: cifs: clean up ordering in exit_cifs cifs: clean up call to cifs_dfs_release_automount_timer() CIFS: Delete echo_retries module parm CIFS: Prepare credits code for a slot reservation CIFS: Make wait_for_free_request killable CIFS: Introduce credit-based flow control CIFS: Simplify inFlight logic cifs: fix issue mounting of DFS ROOT when redirecting from one domain controller to the next CIFS: Respect negotiated MaxMpxCount CIFS: Fix a spurious error in cifs_push_posix_locks
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r--fs/cifs/cifsfs.c25
1 files changed, 9 insertions, 16 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index 418fc42fb8b..eee522c56ef 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
@@ -76,12 +76,7 @@ MODULE_PARM_DESC(cifs_min_small, "Small network buffers in pool. Default: 30 "
76unsigned int cifs_max_pending = CIFS_MAX_REQ; 76unsigned int cifs_max_pending = CIFS_MAX_REQ;
77module_param(cifs_max_pending, int, 0444); 77module_param(cifs_max_pending, int, 0444);
78MODULE_PARM_DESC(cifs_max_pending, "Simultaneous requests to server. " 78MODULE_PARM_DESC(cifs_max_pending, "Simultaneous requests to server. "
79 "Default: 50 Range: 2 to 256"); 79 "Default: 32767 Range: 2 to 32767.");
80unsigned short echo_retries = 5;
81module_param(echo_retries, ushort, 0644);
82MODULE_PARM_DESC(echo_retries, "Number of echo attempts before giving up and "
83 "reconnecting server. Default: 5. 0 means "
84 "never reconnect.");
85module_param(enable_oplocks, bool, 0644); 80module_param(enable_oplocks, bool, 0644);
86MODULE_PARM_DESC(enable_oplocks, "Enable or disable oplocks (bool). Default:" 81MODULE_PARM_DESC(enable_oplocks, "Enable or disable oplocks (bool). Default:"
87 "y/Y/1"); 82 "y/Y/1");
@@ -1111,9 +1106,9 @@ init_cifs(void)
1111 if (cifs_max_pending < 2) { 1106 if (cifs_max_pending < 2) {
1112 cifs_max_pending = 2; 1107 cifs_max_pending = 2;
1113 cFYI(1, "cifs_max_pending set to min of 2"); 1108 cFYI(1, "cifs_max_pending set to min of 2");
1114 } else if (cifs_max_pending > 256) { 1109 } else if (cifs_max_pending > CIFS_MAX_REQ) {
1115 cifs_max_pending = 256; 1110 cifs_max_pending = CIFS_MAX_REQ;
1116 cFYI(1, "cifs_max_pending set to max of 256"); 1111 cFYI(1, "cifs_max_pending set to max of %u", CIFS_MAX_REQ);
1117 } 1112 }
1118 1113
1119 rc = cifs_fscache_register(); 1114 rc = cifs_fscache_register();
@@ -1175,11 +1170,8 @@ static void __exit
1175exit_cifs(void) 1170exit_cifs(void)
1176{ 1171{
1177 cFYI(DBG2, "exit_cifs"); 1172 cFYI(DBG2, "exit_cifs");
1178 cifs_proc_clean(); 1173 unregister_filesystem(&cifs_fs_type);
1179 cifs_fscache_unregister();
1180#ifdef CONFIG_CIFS_DFS_UPCALL
1181 cifs_dfs_release_automount_timer(); 1174 cifs_dfs_release_automount_timer();
1182#endif
1183#ifdef CONFIG_CIFS_ACL 1175#ifdef CONFIG_CIFS_ACL
1184 cifs_destroy_idmaptrees(); 1176 cifs_destroy_idmaptrees();
1185 exit_cifs_idmap(); 1177 exit_cifs_idmap();
@@ -1187,10 +1179,11 @@ exit_cifs(void)
1187#ifdef CONFIG_CIFS_UPCALL 1179#ifdef CONFIG_CIFS_UPCALL
1188 unregister_key_type(&cifs_spnego_key_type); 1180 unregister_key_type(&cifs_spnego_key_type);
1189#endif 1181#endif
1190 unregister_filesystem(&cifs_fs_type);
1191 cifs_destroy_inodecache();
1192 cifs_destroy_mids();
1193 cifs_destroy_request_bufs(); 1182 cifs_destroy_request_bufs();
1183 cifs_destroy_mids();
1184 cifs_destroy_inodecache();
1185 cifs_fscache_unregister();
1186 cifs_proc_clean();
1194} 1187}
1195 1188
1196MODULE_AUTHOR("Steve French <sfrench@us.ibm.com>"); 1189MODULE_AUTHOR("Steve French <sfrench@us.ibm.com>");