Linux CIFS filesystem development
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw-KKrjLPT3xs0@public.gmane.org>
To: Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: "Srivatsa S. Bhat"
	<srivatsa.bhat-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>,
	Woody Suwalski
	<terraluna977-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	LKML <linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Linux PM mailing list
	<linux-pm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Tejun Heo <tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Belisko Marek
	<marek.belisko-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: CIFS mount: 3.2.0-rc3 suspend crash
Date: Tue, 6 Dec 2011 22:33:50 +0100	[thread overview]
Message-ID: <201112062233.50317.rjw@sisk.pl> (raw)
In-Reply-To: <20111130062502.68d9db59-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>

On Wednesday, November 30, 2011, Jeff Layton wrote:
> On Wed, 30 Nov 2011 11:03:59 +0530
> "Srivatsa S. Bhat" <srivatsa.bhat-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> wrote:

[...]
> 
> cifs: attempt to freeze while looping on a receive attempt
> 
> In the recent overhaul of the demultiplex thread receive path, we
> neglected to ensure that we attempt to freeze on each pass through the
> loop.
> 
> Reported-by: Woody Suwalski <terraluna977-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> Signed-off-by: Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

I suppose this patch is going to go through the CIFS tree?

Rafael


> ---
>  fs/cifs/connect.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
> index bf82f88..d166e3a 100644
> --- a/fs/cifs/connect.c
> +++ b/fs/cifs/connect.c
> @@ -441,6 +441,8 @@ cifs_readv_from_socket(struct TCP_Server_Info *server, struct kvec *iov_orig,
>  	smb_msg.msg_controllen = 0;
>  
>  	for (total_read = 0; to_read; total_read += length, to_read -= length) {
> +		try_to_freeze();
> +
>  		if (server_unresponsive(server)) {
>  			total_read = -EAGAIN;
>  			break;
> 

  parent reply	other threads:[~2011-12-06 21:33 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4ED56C12.1040708@gmail.com>
     [not found] ` <4ED5C047.6040500@linux.vnet.ibm.com>
2011-11-30 11:25   ` CIFS mount: 3.2.0-rc3 suspend crash Jeff Layton
2011-11-30 22:34     ` Woody Suwalski
     [not found]       ` <4ED6AF7B.9090101-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-12-01 11:33         ` Jeff Layton
     [not found]           ` <20111201063315.5aa68bd4-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2011-12-01 17:11             ` Srivatsa S. Bhat
     [not found]               ` <4ED7B55F.5010703-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2011-12-01 17:30                 ` Srivatsa S. Bhat
     [not found]                   ` <4ED7B9A0.7060900-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2011-12-01 18:17                     ` Srivatsa S. Bhat
     [not found]                       ` <4ED7C49D.4090902-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2011-12-01 18:59                         ` Jeff Layton
     [not found]                           ` <20111201135932.4bca20bb-xSBYVWDuneFaJnirhKH9O4GKTjYczspe@public.gmane.org>
2011-12-01 20:10                             ` Srivatsa S. Bhat
     [not found]                               ` <4ED7DF48.3050402-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2011-12-01 21:01                                 ` Jeff Layton
2011-12-01 22:32                     ` Steve French
     [not found]                       ` <CAH2r5mvwAzgqCggwRQuhSbCBM2NGeao_hqPFjNyW5yqr_48zSA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-12-01 23:15                         ` Woody Suwalski
     [not found]     ` <20111130062502.68d9db59-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2011-12-01 23:40       ` Woody Suwalski
2011-12-02 12:49         ` Srivatsa S. Bhat
     [not found]           ` <4ED8C940.20509-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2011-12-05 17:41             ` Tejun Heo
     [not found]               ` <20111205174126.GF627-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2011-12-05 18:09                 ` Srivatsa S. Bhat
     [not found]                   ` <4EDD08D0.9030401-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2011-12-05 18:31                     ` Steve French
2011-12-06 21:33       ` Rafael J. Wysocki [this message]
     [not found]         ` <201112062233.50317.rjw-KKrjLPT3xs0@public.gmane.org>
2011-12-06 21:38           ` Jeff Layton
     [not found]             ` <20111206163810.24663e3f-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
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=201112062233.50317.rjw@sisk.pl \
    --to=rjw-kkrjlpt3xs0@public.gmane.org \
    --cc=jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-pm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=marek.belisko-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=srivatsa.bhat-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org \
    --cc=terraluna977-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    /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