Re: [PATCH 0/2] cifs: don't perform SMB echoes on un-negotiated socket

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 7 Feb 2011 11:42:05 -0600
Steve French <smfrench@xxxxxxxxx> wrote:

> On Mon, Feb 7, 2011 at 7:54 AM, Jeff Layton <jlayton@xxxxxxxxxx> wrote:
> > 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.
> 
> Jeff may be right that the code is clearer with this approach (I may try
> to code the alternative to check) but ... we really shouldn't be sending
> an SMBecho between negprot and sessionsetup anyway (so checking for
> sessionsetup may make sense). 
>  If a negprot times out or
> sessionsetup times out we don't need to be sending SMBecho
> (on the other hand perhaps a really slow krb5 sessionsetup?)
> Once a sessionsetup is sent, SMBechos make more sense.
> 

Why shouldn't we send one between the negotiate and session setup? The
MS-CIFS spec makes no mention that a session setup is required prior to
doing an echo. You may be correct, but that's not really what the spec
says.

-- 
Jeff Layton <jlayton@xxxxxxxxxx>
--
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


[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux