diff options
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r-- | fs/cifs/cifsfs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index f1d9c71e807f..cb77915a445b 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c | |||
@@ -482,16 +482,16 @@ static void cifs_umount_begin(struct super_block *sb) | |||
482 | 482 | ||
483 | tcon = cifs_sb_master_tcon(cifs_sb); | 483 | tcon = cifs_sb_master_tcon(cifs_sb); |
484 | 484 | ||
485 | read_lock(&cifs_tcp_ses_lock); | 485 | spin_lock(&cifs_tcp_ses_lock); |
486 | if ((tcon->tc_count > 1) || (tcon->tidStatus == CifsExiting)) { | 486 | if ((tcon->tc_count > 1) || (tcon->tidStatus == CifsExiting)) { |
487 | /* we have other mounts to same share or we have | 487 | /* we have other mounts to same share or we have |
488 | already tried to force umount this and woken up | 488 | already tried to force umount this and woken up |
489 | all waiting network requests, nothing to do */ | 489 | all waiting network requests, nothing to do */ |
490 | read_unlock(&cifs_tcp_ses_lock); | 490 | spin_unlock(&cifs_tcp_ses_lock); |
491 | return; | 491 | return; |
492 | } else if (tcon->tc_count == 1) | 492 | } else if (tcon->tc_count == 1) |
493 | tcon->tidStatus = CifsExiting; | 493 | tcon->tidStatus = CifsExiting; |
494 | read_unlock(&cifs_tcp_ses_lock); | 494 | spin_unlock(&cifs_tcp_ses_lock); |
495 | 495 | ||
496 | /* cancel_brl_requests(tcon); */ /* BB mark all brl mids as exiting */ | 496 | /* cancel_brl_requests(tcon); */ /* BB mark all brl mids as exiting */ |
497 | /* cancel_notify_requests(tcon); */ | 497 | /* cancel_notify_requests(tcon); */ |
@@ -940,7 +940,7 @@ init_cifs(void) | |||
940 | GlobalTotalActiveXid = 0; | 940 | GlobalTotalActiveXid = 0; |
941 | GlobalMaxActiveXid = 0; | 941 | GlobalMaxActiveXid = 0; |
942 | memset(Local_System_Name, 0, 15); | 942 | memset(Local_System_Name, 0, 15); |
943 | rwlock_init(&cifs_tcp_ses_lock); | 943 | spin_lock_init(&cifs_tcp_ses_lock); |
944 | spin_lock_init(&cifs_file_list_lock); | 944 | spin_lock_init(&cifs_file_list_lock); |
945 | spin_lock_init(&GlobalMid_Lock); | 945 | spin_lock_init(&GlobalMid_Lock); |
946 | 946 | ||