pvcalls-front: read all data before closing the connection
authorStefano Stabellini <sstabellini@kernel.org>
Fri, 21 Dec 2018 23:06:29 +0000 (15:06 -0800)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Wed, 2 Jan 2019 15:59:48 +0000 (10:59 -0500)
commitb79470b64fa9266948d1ce8d825ced94c4f63293
tree096e3cb80f128bbf7ed320f8141c13975a2d4d59
parent58f9d806d16a38ed3bae11e2ada83393436a4956
pvcalls-front: read all data before closing the connection

When a connection is closing in_error is set to ENOTCONN. There could
still be outstanding data on the ring left by the backend. Before
closing the connection on the frontend side, drain the ring.

Signed-off-by: Stefano Stabellini <stefanos@xilinx.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/pvcalls-front.c