diff options
author | Willem de Bruijn <willemb@google.com> | 2017-04-25 15:59:17 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-26 14:50:06 -0400 |
commit | 78a57b482aa53b040fbc2b2ef0208b54f004161b (patch) | |
tree | 66f453e70af121cbe5bd0965c3a59b61ec5f6bcd /fs/stat.c | |
parent | 1f7fe5d492a4f3f7ed74b8e15548ced38f5a59be (diff) | |
download | linux-stable-78a57b482aa53b040fbc2b2ef0208b54f004161b.tar.gz linux-stable-78a57b482aa53b040fbc2b2ef0208b54f004161b.tar.bz2 linux-stable-78a57b482aa53b040fbc2b2ef0208b54f004161b.zip |
virtio-net: on tx, only call napi_disable if tx napi is on
As of tx napi, device down (`ip link set dev $dev down`) hangs unless
tx napi is enabled. Else napi_enable is not called, so napi_disable
will spin on test_and_set_bit NAPI_STATE_SCHED.
Only call napi_disable if tx napi is enabled.
Fixes: 5a719c2552ca ("virtio-net: transmit napi")
Reported-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Willem de Bruijn <willemb@google.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/stat.c')
0 files changed, 0 insertions, 0 deletions