From 9608ec9f5aaed5f076a193b3440438761d8bffa1 Mon Sep 17 00:00:00 2001 From: Steve French Date: Thu, 3 Jan 2008 17:37:09 +0000 Subject: [PATCH] --- yaml --- r: 77299 b: refs/heads/master c: 88e7d705c4bdb729f02173583628ccbf49dba945 h: refs/heads/master i: 77297: 45fdd14b920846fdc7f3f89bb0eea4286863700d 77295: 639d957b03d38b53244cb461f37898b1f03c290f v: v3 --- [refs] | 2 +- trunk/fs/cifs/connect.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index c37125bca305..4a734d397c4a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 97837582bc1e191d2792af74c1f3762ed01243b9 +refs/heads/master: 88e7d705c4bdb729f02173583628ccbf49dba945 diff --git a/trunk/fs/cifs/connect.c b/trunk/fs/cifs/connect.c index 658f58b99e6f..db3746c891b5 100644 --- a/trunk/fs/cifs/connect.c +++ b/trunk/fs/cifs/connect.c @@ -1966,13 +1966,13 @@ cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb, pSesInfo = existingCifsSes; cFYI(1, ("Existing smb sess found (status=%d)", pSesInfo->status)); + down(&pSesInfo->sesSem); if (pSesInfo->status == CifsNeedReconnect) { cFYI(1, ("Session needs reconnect")); - down(&pSesInfo->sesSem); rc = cifs_setup_session(xid, pSesInfo, cifs_sb->local_nls); - up(&pSesInfo->sesSem); } + up(&pSesInfo->sesSem); } else if (!rc) { cFYI(1, ("Existing smb sess not found")); pSesInfo = sesInfoAlloc(); @@ -3522,7 +3522,7 @@ cifs_umount(struct super_block *sb, struct cifs_sb_info *cifs_sb) sesInfoFree(ses); FreeXid(xid); - return rc; /* BB check if we should always return zero here */ + return rc; } int cifs_setup_session(unsigned int xid, struct cifsSesInfo *pSesInfo,