Re: [PATCH] net/mlx4_en: do batched put_page using atomic_sub

2016-04-19 Thread David Miller
From: Konstantin Khlebnikov Date: Mon, 18 Apr 2016 14:34:05 +0300 > This patch fixes couple error paths after allocation failures. > Atomic set of page reference counter is safe only if it is zero, > otherwise set can race with any speculative get_page_unless_zero. > > Signed-off-by: Konstantin

[PATCH] net/mlx4_en: do batched put_page using atomic_sub

2016-04-18 Thread Konstantin Khlebnikov
This patch fixes couple error paths after allocation failures. Atomic set of page reference counter is safe only if it is zero, otherwise set can race with any speculative get_page_unless_zero. Signed-off-by: Konstantin Khlebnikov --- drivers/net/ethernet/mellanox/mlx4/en_rx.c |8 ++-- 1