[linux-cifs-client] Re: sendmsg blocking with sendtimeout vs. non-blocking

Steve French smfrench at gmail.com
Fri Oct 24 14:23:19 GMT 2008


On Fri, Oct 24, 2008 at 7:53 AM, Neil Horman <nhorman at redhat.com> wrote:

>  The correct solution is to read data out of the socket into a temporary
> buffer that you allocate in the cifs code, and loop repetatively calling
> recv[msg|from] until such time as the entire message has been read.
>
>
> That is what the cifs code does in cifs_demultiplex_thread.

Shirish,
If we can verify that performance does not appear to be impacted (e.g. some
dbench runs against remote server and also against localhost/samba)  when
removing the few lines of code in (cifs's) ipv4_connect in which cifs sets
sndbuf/rcvbuf (we never set them in the case fortunately) - then I will
remove those lines immediately (and I am ok with not having a mount option
to turn off the autotuning ie revert to old behavior)



-- 
Thanks,

Steve
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the linux-cifs-client mailing list