From: Tejun Heo <tj@kernel.org>
To: "Srivatsa S. Bhat" <srivatsa.bhat@linux.vnet.ibm.com>
Cc: Woody Suwalski <terraluna977@gmail.com>,
Jeff Layton <jlayton@redhat.com>,
LKML <linux-kernel@vger.kernel.org>,
"Rafael J. Wysocki" <rjw@sisk.pl>,
Linux PM mailing list <linux-pm@vger.kernel.org>,
Belisko Marek <marek.belisko@gmail.com>,
linux-cifs@vger.kernel.org,
Network Development <netdev@vger.kernel.org>,
Greg Kroah-Hartman <gregkh@suse.de>,
davem@davemloft.net
Subject: Re: CIFS mount: 3.2.0-rc3 suspend crash
Date: Mon, 5 Dec 2011 09:41:26 -0800 [thread overview]
Message-ID: <20111205174126.GF627@google.com> (raw)
In-Reply-To: <4ED8C940.20509@linux.vnet.ibm.com>
Hello, Srivatsa.
On Fri, Dec 02, 2011 at 06:19:04PM +0530, Srivatsa S. Bhat wrote:
> So how about solving this problem more fundamentally, such as defining a
> freezable wrapper over kernel_recvmsg like:
>
> #define kernel_recvmsg_freezable(sock, msg, vec, num, size, flags) \
> ({ \
> kernel_recvmsg(sock, msg, vec, num, size, flags) \
> try_to_freeze(); \
> })
>
> and using it instead of kernel_recvmsg(), throughout the kernel?
>
> But kernel_recvmsg is an exported symbol. So if we are very very unwilling
> to change the kernel ABI, we could probably think about adding try_to_freeze()
> inside kernel_recvmsg itself,like this (but see below about my thoughts about
> which one is better):
I don't necessarily object to introducing the wrapper but I don't
really think we should be doing s//g over the source tree without
understanding where it's actually necessary. For kernel threads and
user threads out of the signal delivery path, try_to_freeze() is an
exceptional event which introduces behavior which can be difficult to
reproduce track down and spreading it without actually knowing what
the surrounding code is doing doesn't sound like a good idea to me.
Thank you.
--
tejun
next prev parent reply other threads:[~2011-12-05 17:41 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-29 23:34 CIFS mount: 3.2.0-rc3 suspend crash Woody Suwalski
2011-11-30 5:33 ` Srivatsa S. Bhat
2011-11-30 11:25 ` Jeff Layton
2011-11-30 22:34 ` Woody Suwalski
2011-12-01 11:33 ` Jeff Layton
2011-12-01 17:11 ` Srivatsa S. Bhat
2011-12-01 17:30 ` Srivatsa S. Bhat
2011-12-01 18:17 ` Srivatsa S. Bhat
2011-12-01 18:59 ` Jeff Layton
2011-12-01 20:10 ` Srivatsa S. Bhat
2011-12-01 21:01 ` Jeff Layton
2011-12-01 22:32 ` Steve French
2011-12-01 23:15 ` Woody Suwalski
2011-12-01 23:40 ` Woody Suwalski
2011-12-02 12:49 ` Srivatsa S. Bhat
2011-12-05 17:41 ` Tejun Heo [this message]
2011-12-05 18:09 ` Srivatsa S. Bhat
2011-12-05 18:31 ` Steve French
2011-12-06 21:33 ` Rafael J. Wysocki
2011-12-06 21:38 ` Jeff Layton
2011-12-07 2:57 ` Steve French
2011-12-07 3:45 ` Srivatsa S. Bhat
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=20111205174126.GF627@google.com \
--to=tj@kernel.org \
--cc=davem@davemloft.net \
--cc=gregkh@suse.de \
--cc=jlayton@redhat.com \
--cc=linux-cifs@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=marek.belisko@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=rjw@sisk.pl \
--cc=srivatsa.bhat@linux.vnet.ibm.com \
--cc=terraluna977@gmail.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;
as well as URLs for NNTP newsgroup(s).