Searched hist:"42 b0270b" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_main.c | 42b0270b Fri Oct 10 06:48:14 CDT 2014 Eric Dumazet <edumazet@google.com> fm10k: fix race accessing page->_count
This is illegal to use atomic_set(&page->_count, 2) even if we 'own' the page. Other entities in the kernel need to use get_page_unless_zero() to get a reference to the page before testing page properties, so we could loose a refcount increment.
Signed-off-by: Eric Dumazet <edumazet@google.com> Acked-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net> 42b0270b Fri Oct 10 06:48:14 CDT 2014 Eric Dumazet <edumazet@google.com> fm10k: fix race accessing page->_count This is illegal to use atomic_set(&page->_count, 2) even if we 'own' the page. Other entities in the kernel need to use get_page_unless_zero() to get a reference to the page before testing page properties, so we could loose a refcount increment. Signed-off-by: Eric Dumazet <edumazet@google.com> Acked-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|