On Wednesday, November 30, 2011, Jeff Layton wrote: > On Wed, 30 Nov 2011 11:03:59 +0530 > "Srivatsa S. Bhat" <srivatsa.bhat@xxxxxxxxxxxxxxxxxx> 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@xxxxxxxxx> > Signed-off-by: Jeff Layton <jlayton@xxxxxxxxxx> 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; > -- To unsubscribe from this list: send the line "unsubscribe linux-cifs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html