Commit 28f3b86
committed
smb: client: fix hang in wait_for_response() for negproto
jira LE-2157
Rebuild_History Non-Buildable kernel-5.14.0-503.14.1.el9_5
commit-author Paulo Alcantara <pc@manguebit.com>
commit 7ccc146
Call cifs_reconnect() to wake up processes waiting on negotiate
protocol to handle the case where server abruptly shut down and had no
chance to properly close the socket.
Simple reproducer:
ssh 192.168.2.100 pkill -STOP smbd
mount.cifs //192.168.2.100/test /mnt -o ... [never returns]
Cc: Rickard Andersson <rickaran@axis.com>
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
(cherry picked from commit 7ccc146)
Signed-off-by: Jonathan Maple <jmaple@ciq.com>1 parent 13678b9 commit 28f3b86
1 file changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
656 | 656 | | |
657 | 657 | | |
658 | 658 | | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
659 | 672 | | |
660 | 673 | | |
661 | 674 | | |
| |||
667 | 680 | | |
668 | 681 | | |
669 | 682 | | |
670 | | - | |
671 | 683 | | |
672 | 684 | | |
673 | 685 | | |
| |||
0 commit comments