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:56:35 +0000 (09:56 +0200)
commit87451738cb176c7d41988fde6c2ec40b2c5a7b65
treec901de2f0261c34e166ebd1072728a2935148a20
parent6052d03fc9e3bcb5ed0070f20cff3abb3cef4461
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