diff options
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r-- | fs/cifs/cifsfs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index 5d8b7edf8a8f..5d841f39c4b7 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c | |||
@@ -87,6 +87,7 @@ extern mempool_t *cifs_req_poolp; | |||
87 | extern mempool_t *cifs_mid_poolp; | 87 | extern mempool_t *cifs_mid_poolp; |
88 | 88 | ||
89 | struct workqueue_struct *cifsiod_wq; | 89 | struct workqueue_struct *cifsiod_wq; |
90 | __u32 cifs_lock_secret; | ||
90 | 91 | ||
91 | /* | 92 | /* |
92 | * Bumps refcount for cifs super block. | 93 | * Bumps refcount for cifs super block. |
@@ -1266,6 +1267,8 @@ init_cifs(void) | |||
1266 | spin_lock_init(&cifs_file_list_lock); | 1267 | spin_lock_init(&cifs_file_list_lock); |
1267 | spin_lock_init(&GlobalMid_Lock); | 1268 | spin_lock_init(&GlobalMid_Lock); |
1268 | 1269 | ||
1270 | get_random_bytes(&cifs_lock_secret, sizeof(cifs_lock_secret)); | ||
1271 | |||
1269 | if (cifs_max_pending < 2) { | 1272 | if (cifs_max_pending < 2) { |
1270 | cifs_max_pending = 2; | 1273 | cifs_max_pending = 2; |
1271 | cifs_dbg(FYI, "cifs_max_pending set to min of 2\n"); | 1274 | cifs_dbg(FYI, "cifs_max_pending set to min of 2\n"); |