staging: qlge: Refill empty buffer queues from wq
authorBenjamin Poirier <bpoirier@suse.com>
Fri, 27 Sep 2019 10:12:11 +0000 (19:12 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2019 15:17:47 +0000 (17:17 +0200)
commitb91fec1ecf6f0a93d909f8cb98ad8aea7109e81b
treeb9b09453174d8e706be657a76e93b36a2d78c7f3
parent6e9c52b920974b90c4ca994c5d8c5bc56742017f
staging: qlge: Refill empty buffer queues from wq

When operating at mtu 9000, qlge does order-1 allocations for rx buffers in
atomic context. This is especially unreliable when free memory is low or
fragmented. Add an approach similar to commit 3161e453e496 ("virtio: net
refill on out-of-memory") to qlge so that the device doesn't lock up if
there are allocation failures.

Signed-off-by: Benjamin Poirier <bpoirier@suse.com>
Link: https://lore.kernel.org/r/20190927101210.23856-18-bpoirier@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/qlge/TODO
drivers/staging/qlge/qlge.h
drivers/staging/qlge/qlge_main.c