net/smc: non blocking recvmsg() return -EAGAIN when no data and signal_pending
Non blocking sendmsg will return -EAGAIN when any signal pending
and no send space left, while non blocking recvmsg return -EINTR
when signal pending and no data received. This may makes confused.
As TCP returns -EAGAIN in the conditions described above. Align the
behavior of smc with TCP.
Fixes: 846e344eb722 ("net/smc: add receive timeout check")
Signed-off-by: Guangguan Wang <email@example.com>
Reviewed-by: Tony Lu <firstname.lastname@example.org>
Acked-by: Karsten Graul <email@example.com>
Signed-off-by: Jakub Kicinski <firstname.lastname@example.org>
1 file changed