From: "Steve French" <smfrench@gmail.com>
To: akpm@linux-foundation.org, linux-kernel@vger.kernel.org,
shaggy@austin.ibm.com, hi_dave.darkstar@gmail.com
Subject: Re: 2.6.22-rc1-mm1 cifs_mount oops
Date: Wed, 23 May 2007 09:59:04 -0500 [thread overview]
Message-ID: <524f69650705230759h709887d7y740f532ae4f53fc@mail.gmail.com> (raw)
This is what I now have in the cifs git tree. (only minor change is
that I now have since fixed the missing space after the if)
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 216fb62..f6963d1 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -2069,8 +2069,15 @@ cifs_mount(struct super_block *sb, struct
cifs_sb_info *cifs_sb,
srvTcp->tcpStatus = CifsExiting;
spin_unlock(&GlobalMid_Lock);
if (srvTcp->tsk) {
+ struct task_struct *tsk;
+ /* If we could verify that kthread_stop would
+ always wake up processes blocked in
+ tcp in recv_mesg then we could remove the
+ send_sig call */
send_sig(SIGKILL,srvTcp->tsk,1);
- kthread_stop(srvTcp->tsk);
+ tsk = srvTcp->tsk;
+ if(tsk)
+ kthread_stop(srvTcp->tsk);
}
}
/* If find_unc succeeded then rc == 0 so we can not end */
@@ -2085,8 +2092,11 @@ cifs_mount(struct super_block *sb, struct
cifs_sb_info *cifs_sb,
/* if the socketUseCount is now zero */
if ((temp_rc == -ESHUTDOWN) &&
(pSesInfo->server) &&
(pSesInfo->server->tsk)) {
+ struct task_struct *tsk;
send_sig(SIGKILL,pSesInfo->server->tsk,1);
-
kthread_stop(pSesInfo->server->tsk);
+ tsk = pSesInfo->server->tsk;
+ if(tsk)
+ kthread_stop(tsk);
}
} else
cFYI(1, ("No session or bad tcon"));
--
Thanks,
Steve
next reply other threads:[~2007-05-23 14:59 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-23 14:59 Steve French [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-05-23 0:50 young dave
2007-05-23 2:22 ` Andrew Morton
2007-05-23 2:59 ` young dave
2007-05-23 3:21 ` Andrew Morton
2007-05-23 7:16 ` young dave
2007-05-23 8:37 ` young dave
2007-05-23 13:28 ` Steven French
2007-05-23 16:10 ` Andrew Morton
2007-05-23 22:14 ` Steven French
2007-05-24 1:05 ` young dave
2007-05-24 2:38 ` Steven French
2007-05-23 13:56 ` Steven French
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=524f69650705230759h709887d7y740f532ae4f53fc@mail.gmail.com \
--to=smfrench@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=hi_dave.darkstar@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=shaggy@austin.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®