From: Suresh Jayaraman <sjayaraman-Et1tbQHTxzrQT0dZR+AlfA@public.gmane.org>
To: Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] cifs: remove ENOSPC handling in smb_sendv
Date: Fri, 22 Mar 2013 19:30:09 +0530 [thread overview]
Message-ID: <514C63E9.7070502@novell.com> (raw)
In-Reply-To: <1363956226-10179-1-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
On 03/22/2013 06:13 PM, Jeff Layton wrote:
> To my knowledge, no one ever reported seeing this pop.
> Suresh Jayaraman <sjayaraman-Et1tbQHTxzrQT0dZR+AlfA@public.gmane.org>
Seemed to have missed Cc Tag.
> Signed-off-by: Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> ---
> fs/cifs/transport.c | 8 +-------
> 1 file changed, 1 insertion(+), 7 deletions(-)
>
> diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c
> index cf8bf69..653bf26 100644
> --- a/fs/cifs/transport.c
> +++ b/fs/cifs/transport.c
> @@ -179,13 +179,7 @@ smb_send_kvec(struct TCP_Server_Info *server, struct kvec *iov, size_t n_vec,
> */
> rc = kernel_sendmsg(ssocket, &smb_msg, &iov[first_vec],
> n_vec - first_vec, remaining);
> - if (rc == -ENOSPC || rc == -EAGAIN) {
> - /*
> - * Catch if a low level driver returns -ENOSPC. This
> - * WARN_ON will be removed by 3.10 if no one reports
> - * seeing this.
> - */
> - WARN_ON_ONCE(rc == -ENOSPC);
> + if (rc == -EAGAIN) {
> i++;
> if (i >= 14 || (!server->noblocksnd && (i > 2))) {
> cifs_dbg(VFS, "sends on sock %p stuck for 15 seconds\n",
>
Agreed. I have not seen any reports too. Looks good to me.
Acked-by: Suresh Jayaraman <sjayaraman-Et1tbQHTxzrQT0dZR+AlfA@public.gmane.org>
next prev parent reply other threads:[~2013-03-22 14:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-22 12:43 [PATCH] cifs: remove ENOSPC handling in smb_sendv Jeff Layton
[not found] ` <1363956226-10179-1-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-03-22 14:00 ` Suresh Jayaraman [this message]
[not found] ` <514C63E9.7070502-Et1tbQHTxzrQT0dZR+AlfA@public.gmane.org>
2013-03-22 14:27 ` Jeff Layton
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=514C63E9.7070502@novell.com \
--to=sjayaraman-et1tbqhtxzrqt0dzr+alfa@public.gmane.org \
--cc=jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=smfrench-Re5JQEeQqe8AvxtiuMwx3w@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