login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
May
»
23
Re: 2.6.22-rc1-mm1 cifs_mount oops
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Andrew Morton
Subject:
Re: 2.6.22-rc1-mm1 cifs_mount oops
Date: Tuesday, May 22, 2007 - 8:21 pm
On Wed, 23 May 2007 02:59:07 +0000 "young dave" <hidave.darkstar@gmail.com> wrote:
quoted text
> Hi, > maybe we can add if sentence before kthread_stop. > > diff -ur linux/fs/cifs/connect.c linux.new/fs/cifs/connect.c > --- linux/fs/cifs/connect.c 2007-05-23 10:59:13.000000000 +0000 > +++ linux.new/fs/cifs/connect.c 2007-05-23 10:58:39.000000000 +0000 > @@ -2070,7 +2070,8 @@ > spin_unlock(&GlobalMid_Lock); > if (srvTcp->tsk) { > send_sig(SIGKILL,srvTcp->tsk,1); > - kthread_stop(srvTcp->tsk); > + if(srvTcp->tsk) > + kthread_stop(srvTcp->tsk); > } > }
Yeah, that's racy: once we've sent the signal, the kernel thread can write NULL to srvTcp->tsk at any time. -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
2.6.22-rc1-mm1 cifs_mount oops
, young dave
, (Tue May 22, 5:50 pm)
Re: 2.6.22-rc1-mm1 cifs_mount oops
, Andrew Morton
, (Tue May 22, 7:22 pm)
Re: 2.6.22-rc1-mm1 cifs_mount oops
, young dave
, (Tue May 22, 7:59 pm)
Re: 2.6.22-rc1-mm1 cifs_mount oops
, Andrew Morton
, (Tue May 22, 8:21 pm)
Re: 2.6.22-rc1-mm1 cifs_mount oops
, young dave
, (Wed May 23, 12:16 am)
Re: 2.6.22-rc1-mm1 cifs_mount oops
, young dave
, (Wed May 23, 1:37 am)
Re: 2.6.22-rc1-mm1 cifs_mount oops
, Steven French
, (Wed May 23, 6:28 am)
Re: 2.6.22-rc1-mm1 cifs_mount oops
, Steven French
, (Wed May 23, 6:56 am)
Re: 2.6.22-rc1-mm1 cifs_mount oops
, Andrew Morton
, (Wed May 23, 9:10 am)
Re: 2.6.22-rc1-mm1 cifs_mount oops
, Steven French
, (Wed May 23, 3:14 pm)
Re: 2.6.22-rc1-mm1 cifs_mount oops
, young dave
, (Wed May 23, 6:05 pm)
Re: 2.6.22-rc1-mm1 cifs_mount oops
, Steven French
, (Wed May 23, 7:38 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions