]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mqueue: don't use kmalloc with KMALLOC_MAX_SIZE
authorKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Thu, 3 May 2012 05:44:50 +0000 (15:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 May 2012 05:47:00 +0000 (15:47 +1000)
commit62e907f5bb2c1c9536b1426e5f5f29b9a1d0c876
treeb474d5ef94169c8d877ac677e5c12f3df879908f
parentb631d2b7a611ff619bd14b1bff3d80f3cdfbfa5c
mqueue: don't use kmalloc with KMALLOC_MAX_SIZE

KMALLOC_MAX_SIZE is not a good threshold.  It is extremely high and
problematic.  Unfortunately, some silly drivers depend on this and we
can't change it.  But any new code needn't use such extreme ugly high
order allocations.  It brings us awful fragmentation issues and system
slowdown.

Signed-off-by: KOSAKI Motohiro <mkosaki@jp.fujitsu.com>
Acked-by: Doug Ledford <dledford@redhat.com>
Acked-by: Joe Korty <joe.korty@ccur.com>
Cc: Amerigo Wang <amwang@redhat.com>
Cc: Serge E. Hallyn <serue@us.ibm.com>
Cc: Jiri Slaby <jslaby@suse.cz>
Cc: Joe Korty <joe.korty@ccur.com>
Cc: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
ipc/mqueue.c