diff options
author | 2019-06-07 21:20:40 +0200 | |
---|---|---|
committer | 2019-06-09 19:40:10 -0700 | |
commit | 6dcdd884e2a4bb57b0ed3654ff28974ae17d2a08 (patch) | |
tree | ddf59935f7a1bc272d05ec206fa326329722fa1e /include/linux/tcp.h | |
parent | tg3: Use napi_alloc_frag() (diff) | |
download | wireguard-linux-6dcdd884e2a4bb57b0ed3654ff28974ae17d2a08.tar.xz wireguard-linux-6dcdd884e2a4bb57b0ed3654ff28974ae17d2a08.zip |
net: hwbm: Make the hwbm_pool lock a mutex
Based on review, `lock' is only acquired in hwbm_pool_add() which is
invoked via ->probe(), ->resume() and ->ndo_change_mtu(). Based on this
the lock can become a mutex and there is no need to disable interrupts
during the procedure.
Now that the lock is a mutex, hwbm_pool_add() no longer invokes
hwbm_pool_refill() in an atomic context so we can pass GFP_KERNEL to
hwbm_pool_refill() and remove the `gfp' argument from hwbm_pool_add().
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/tcp.h')
0 files changed, 0 insertions, 0 deletions