From: Eric Dumazet Date: Fri, 10 Oct 2014 11:48:14 +0000 (-0700) Subject: fm10k: fix race accessing page->_count X-Git-Tag: fixes-against-v3.18-rc2~115^2~1^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42b0270b40e2ad692ef59e28233202ee6f293e1e;p=pandora-kernel.git 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 Acked-by: Jeff Kirsher Signed-off-by: David S. Miller --- Reading git-diff-tree failed