Federico Sauter 4afe260bab CIFS: Fix race condition on RFC1002_NEGATIVE_SESSION_RESPONSE
This patch fixes a race condition that occurs when connecting
to a NT 3.51 host without specifying a NetBIOS name.
In that case a RFC1002_NEGATIVE_SESSION_RESPONSE is received
and the SMB negotiation is reattempted, but under some conditions
it leads SendReceive() to hang forever while waiting for srv_mutex.
This, in turn, sets the calling process to an uninterruptible sleep
state and makes it unkillable.

The solution is to unlock the srv_mutex acquired in the demux
thread *before* going to sleep (after the reconnect error) and
before reattempting the connection.
2015-05-20 13:25:55 -05:00
..
2015-05-20 13:12:51 -05:00
2014-12-10 17:41:02 -08:00
2014-12-14 14:55:45 -06:00
2015-05-20 11:36:16 -05:00
2013-11-08 05:57:46 +09:00
2015-01-18 23:49:26 -05:00
2014-12-14 14:55:57 -06:00
2007-06-05 18:30:44 +00:00
2015-05-20 09:32:21 -05:00
2014-12-14 14:55:45 -06:00
2012-07-24 10:25:13 -05:00
2013-09-08 14:54:24 -05:00