All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] cifs: don't perform SMB echoes on un-negotiated socket
@ 2011-02-07 13:54 Jeff Layton
       [not found] ` <1297086876-19165-1-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 14+ messages in thread
From: Jeff Layton @ 2011-02-07 13:54 UTC (permalink / raw)
  To: smfrench-Re5JQEeQqe8AvxtiuMwx3w
  Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA, jg-9fI4heB6ewM

Commit 247ec9b4 makes the SMB echo workqueue job skip doing echoes
unless the tcpStatus == CifsGood. Problem: tcpStatus == CifsGood is not
a reliable indicator of whether the socket has had a NEGOTIATE done on
it. This fixes that by adding a new tcpStatus of CifsNeedNegotiate that
indicates this. It also cleans up cifs_reconnect_tcon a bit.

This is not the only way to fix this issue. As Steve pointed out to me,
we could also check to see whether there's a valid SMB session on the
list as an indicator of whether a NEGOTIATE has been done. I think the
approach I'm proposing clarifies the code better, but I'm willing to go
with his approach if that's the general concensus.

JG reported this problem and tested the patch and stated that it fixed
the problem for him.

Comments and suggestions welcome...

Jeff Layton (2):
  cifs: remove checks for ses->status == CifsExiting
  cifs: clarify the meaning of tcpStatus == CifsGood

 fs/cifs/cifsglob.h |    3 ++-
 fs/cifs/cifssmb.c  |    9 +++------
 fs/cifs/connect.c  |    8 ++++----
 3 files changed, 9 insertions(+), 11 deletions(-)

-- 
1.7.4

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2011-02-09 17:01 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-07 13:54 [PATCH 0/2] cifs: don't perform SMB echoes on un-negotiated socket Jeff Layton
     [not found] ` <1297086876-19165-1-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2011-02-07 13:54   ` [PATCH 1/2] cifs: remove checks for ses->status == CifsExiting Jeff Layton
     [not found]     ` <1297086876-19165-2-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2011-02-07 17:27       ` Steve French
2011-02-07 13:54   ` [PATCH 2/2] cifs: clarify the meaning of tcpStatus == CifsGood Jeff Layton
     [not found]     ` <1297086876-19165-3-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2011-02-08 23:50       ` Steve French
     [not found]         ` <AANLkTikiPgAbei+p2gnqOmuKdHnLpcYOshz7iqBotm1s-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-02-09 12:00           ` Jeff Layton
     [not found]             ` <20110209070041.5d0ca858-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2011-02-09 17:01               ` [PATCH] cifs: clean up checks in cifs_echo_request Jeff Layton
2011-02-07 17:42   ` [PATCH 0/2] cifs: don't perform SMB echoes on un-negotiated socket Steve French
     [not found]     ` <AANLkTi=zs7KZjTnysqxpnGam+2Mv3FRTCKZcY8fB0uFU-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-02-07 18:20       ` Jeff Layton
     [not found]         ` <20110207132036.7af97f8f-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2011-02-07 18:36           ` Steve French
     [not found]             ` <AANLkTikD-Q9A5VxfkbkL-Yg9CjwCTNSoyA9W2biHCOA2-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-02-07 21:14               ` Jeff Layton
     [not found]                 ` <20110207161414.1694cad0-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2011-02-07 21:29                   ` Steve French
     [not found]                     ` <AANLkTiktLMYNi=crSh+NaE2=6qfWgw=ohLjKhp77sJt+-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-02-07 21:57                       ` Jeff Layton
     [not found]                         ` <20110207165726.7141bb4b-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2011-02-07 23:59                           ` Steve French

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.