Re: [v2] Call echo service immediately after socket reconnect

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

 



On Sun, 2017-04-16 at 01:38 +1000, Jonathan Liu wrote:
> Hi Sachin,
> 
> On 21 October 2016 at 10:52, Sachin Prabhu <sprabhu@xxxxxxxxxx>
> wrote:
> > 
> > Commit 4fcd1813e640 ("Fix reconnect to not defer smb3 session
> > reconnect
> > long after socket reconnect") changes the behaviour of the SMB2
> > echo
> > service and causes it to renegotiate after a socket reconnect.
> > However
> > under default settings, the echo service could take up to 120
> > seconds to
> > be scheduled.
> > 
> > The patch forces the echo service to be called immediately
> > resulting a
> > negotiate call being made immediately on reconnect.
> > 
> > Signed-off-by: Sachin Prabhu <sprabhu@xxxxxxxxxx>
> > Reviewed-by: Pavel Shilovsky <pshilov@xxxxxxxxxxxxx>
> 
> This commit is causing a flood of connections to Samba server as well
> as high server CPU load when the Samba is restarted while CIFS share
> is mounted on the client. This can cause the Samba server to become
> slow or unresponsive resulting in denial of service to other users
> connected to the Samba server.
> 
> Bug report: https://bugzilla.kernel.org/show_bug.cgi?id=194531
> 
> Could you please have a look?
> 
> Thanks.
> 
> Regards,
> Jonathan

Hello Jonathan,

Thanks for bringing this to my attention. I've posted a patch to the
list. I've tested it out with the reproducer. Can you please test it
out  in your setup and let me know if it works for you.

Sachin Prabhu

--
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