Skip to content

Commit 598c4b4

Browse files
hcleenamjaejeon
authored andcommitted
ksmbd: smbd: handle RDMA CM time wait event
After a QP has been disconnected, it stays in a timewait state for in flight packets. After the state has completed, RDMA_CM_EVENT_TIMEWAIT_EXIT is reported. Disconnect on RDMA_CM_EVENT_TIMEWAIT_EXIT so that ksmbd can restart. Signed-off-by: Hyunchul Lee <[email protected]> Signed-off-by: Namjae Jeon <[email protected]>
1 parent 9ef42e9 commit 598c4b4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

transport_rdma.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1535,6 +1535,7 @@ static int smb_direct_cm_handler(struct rdma_cm_id *cm_id,
15351535
wake_up_interruptible(&t->wait_status);
15361536
break;
15371537
}
1538+
case RDMA_CM_EVENT_TIMEWAIT_EXIT:
15381539
case RDMA_CM_EVENT_DEVICE_REMOVAL:
15391540
case RDMA_CM_EVENT_DISCONNECTED: {
15401541
t->status = SMB_DIRECT_CS_DISCONNECTED;

0 commit comments

Comments
 (0)