OSDN Git Service

9p/rdma: do not disconnect on down_interruptible EAGAIN
authorDominique Martinet <dominique.martinet@cea.fr>
Thu, 30 Aug 2018 10:29:36 +0000 (19:29 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Jul 2019 07:55:37 +0000 (09:55 +0200)
commitad93d62b121014eb9760ac2efe6f11f287c152ba
tree376b4ab4db92bb8b75f8e941c0947cb4a738e5b6
parent16977a9b7a29a5ac9ae612688d8ad1ccdd159ca9
9p/rdma: do not disconnect on down_interruptible EAGAIN

[ Upstream commit 8b894adb2b7e1d1e64b8954569c761eaf3d51ab5 ]

9p/rdma would sometimes drop the connection and display errors in
recv_done when the user does ^C.
The errors were caused by recv buffers that were posted at the time
of disconnect, and we just do not want to disconnect when
down_interruptible is... interrupted.

Link: http://lkml.kernel.org/r/1535625307-18019-1-git-send-email-asmadeus@codewreck.org
Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/9p/trans_rdma.c