Thread (19 messages) 19 messages, 3 authors, 2011-04-18

Re: [PATCH 08/12] netvm: Allow skb allocation to use PFMEMALLOC reserves

From: Mel Gorman <mgorman@suse.de>
Date: 2011-04-15 10:44:08
Also in: linux-mm, lkml

On Thu, Apr 14, 2011 at 02:33:35PM -0700, David Miller wrote:
From: Mel Gorman <mgorman@suse.de>
Date: Thu, 14 Apr 2011 11:41:34 +0100
quoted
+extern int memalloc_socks;
+static inline int sk_memalloc_socks(void)
+{
+	return memalloc_socks;
+}
+
 ...
quoted
+static DEFINE_MUTEX(memalloc_socks_lock);
+int memalloc_socks __read_mostly;
Please use an atomic_t, it has to be more efficient than this mutex
business.
Will fix.

Thanks.

-- 
Mel Gorman
SUSE Labs

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help