diff options
author | sephe <sephe@FreeBSD.org> | 2016-04-26 04:48:57 +0000 |
---|---|---|
committer | sephe <sephe@FreeBSD.org> | 2016-04-26 04:48:57 +0000 |
commit | f3d0188e03bca2dbf6e92741bdebd44c01b067f7 (patch) | |
tree | 792e1b73c03103c85cb62050ad39b980c841fa6f /sys/dev | |
parent | f32b4c2e155c56824cc13c295f7ac893160b965a (diff) | |
download | FreeBSD-src-f3d0188e03bca2dbf6e92741bdebd44c01b067f7.zip FreeBSD-src-f3d0188e03bca2dbf6e92741bdebd44c01b067f7.tar.gz |
hyperv/stor: Remove the useless hs_open_multi_channel
This fixes the sub-channel offer race after Hyper-V device probe/attach
is moved to vmbus SYSINIT/attach.
MFC after: 1 week
Sponsored by: Microsoft OSTC
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c b/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c index a52ae0c..26dc381 100644 --- a/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c +++ b/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c @@ -140,7 +140,6 @@ struct storvsc_softc { uint32_t hs_num_out_reqs; boolean_t hs_destroy; boolean_t hs_drain_notify; - boolean_t hs_open_multi_channel; struct sema hs_drain_sema; struct hv_storvsc_request hs_init_req; struct hv_storvsc_request hs_reset_req; @@ -336,9 +335,6 @@ storvsc_handle_sc_creation(void *context) if (sc == NULL) return; - if (FALSE == sc->hs_open_multi_channel) - return; - memset(&props, 0, sizeof(props)); ret = hv_vmbus_channel_open(new_channel, @@ -417,8 +413,6 @@ storvsc_send_multichannel_request(struct hv_device *dev, int max_chans) return; } - sc->hs_open_multi_channel = TRUE; - if (bootverbose) printf("Storvsc create multi-channel success!\n"); } @@ -1034,7 +1028,6 @@ storvsc_attach(device_t dev) sc->hs_destroy = FALSE; sc->hs_drain_notify = FALSE; - sc->hs_open_multi_channel = FALSE; sema_init(&sc->hs_drain_sema, 0, "Store Drain Sema"); ret = hv_storvsc_connect_vsp(hv_dev); |