vmbus: split ring buffer allocation from open
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 14 Sep 2018 16:10:17 +0000 (09:10 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Sep 2018 18:33:24 +0000 (20:33 +0200)
commitae6935ed7d424ffa74d634da00767e7b03c98fd3
treed26a4096301a8555277b50eb9741bcb978a308b2
parent52a42c2a90226dc61c99bbd0cb096deeb52c334b
vmbus: split ring buffer allocation from open

The UIO driver needs the ring buffer to be persistent(reused)
across open/close. Split the allocation and setup of ring buffer
out of vmbus_open. For normal usage vmbus_open/vmbus_close there
are no changes; only impacts uio_hv_generic which needs to keep
ring buffer memory and reuse when application restarts.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/channel.c
drivers/hv/ring_buffer.c
include/linux/hyperv.h