Thread (11 messages) 11 messages, 4 authors, 2009-06-23

Re: [PATCH 3/3] net-dccp: Suppress warning about large allocations from DCCP

From: Eric Dumazet <hidden>
Date: 2009-06-23 11:05:13
Also in: lkml

David Miller a ecrit :
From: Arnaldo Carvalho de Melo <redacted>
Date: Mon, 22 Jun 2009 23:39:36 -0300
quoted
Em Mon, Jun 22, 2009 at 04:15:02PM -0700, David Miller escreveu:
quoted
It's probably much more appropriate to make this stuff use
alloc_large_system_hash(), like TCP does (see net/ipv4/tcp.c
tcp_init()).

All of this complicated DCCP hash table size computation code will
simply disappear.  And it'll fix the warning too :-)
He mentioned that in the conversation that lead to this new patch
series, problem is that alloc_large_system_hash is __init, so when you
try to load dccp.ko it will not be available.
Fair enough.

It's such an unfortunate duplication of code, it's likely therefore
better to remove the __init tag and export that symbol.
Agreed, I once considered using this function for futex hash table allocation
and just forgot about it...

But it has some bootmem references, it might need more work than just exporting it.

--
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/ .
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