]> git.ipfire.org Git - thirdparty/linux.git/commit
uio_hv_generic: set callbacks on open
authorStephen Hemminger <stephen@networkplumber.org>
Mon, 10 Dec 2018 18:18:19 +0000 (10:18 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Dec 2018 13:23:17 +0000 (14:23 +0100)
commit5e3c420dcca53766dec57d5bf4df8eecdb953c03
treeb13c43f7e5eac5a068dc3f784899644da04d4d50
parent40e020c129cfc991e8ab4736d2665351ffd1468d
uio_hv_generic: set callbacks on open

This fixes the problem where uio application was unable to
use multple queues on restart. The root cause is that the callbacks
are cleared on disconnect. Change to setting up callbacks
everytime in open.

Fixes: cdfa835c6e5e ("uio_hv_generic: defer opening vmbus until first use")
Reported-by: Mohammed Gamal <mgamal@redhat.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uio/uio_hv_generic.c