]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite0f270efc94b6d690ccec300df947a3d8bc2f46a
tree096e3cb80f128bbf7ed320f8141c13975a2d4d59
parent3e5ee86006484e1e03a45ba2190a3460594dc7da
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