Commit e0bb0d0
committed
smb: client: fix hang in wait_for_response() for negproto
jira LE-2015
Rebuild_History Non-Buildable kernel-5.14.0-427.42.1.el9_4
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 1b5a425 commit e0bb0d0
1 file changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
617 | 617 | | |
618 | 618 | | |
619 | 619 | | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
620 | 633 | | |
621 | 634 | | |
622 | 635 | | |
| |||
628 | 641 | | |
629 | 642 | | |
630 | 643 | | |
631 | | - | |
632 | 644 | | |
633 | 645 | | |
634 | 646 | | |
| |||
0 commit comments