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, 3 Jul 2019 11:14:42 +0000 (13:14 +0200)
commit04ee7e7b479512dc789ddc915975006c5da27863
tree3125af71854add13dbceba29b8af3c4d2e23fffa
parent3665a4d9dca1bd06bc34afb72e637fe01b2776ee
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