lkml.org 
[lkml]   [2011]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: CIFS mount: 3.2.0-rc3 suspend crash
Date
On Wednesday, November 30, 2011, Jeff Layton wrote:
> On Wed, 30 Nov 2011 11:03:59 +0530
> "Srivatsa S. Bhat" <srivatsa.bhat@linux.vnet.ibm.com> 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@gmail.com>
> Signed-off-by: Jeff Layton <jlayton@redhat.com>

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;
>



\
 
 \ /
  Last update: 2011-12-06 22:33    [W:0.136 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site