]> git.itanic.dy.fi Git - linux-stable/commit
sparc: Size mondo queues more sanely.
authorDavid S. Miller <davem@davemloft.net>
Fri, 5 Aug 2011 09:38:27 +0000 (02:38 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Aug 2011 01:31:41 +0000 (18:31 -0700)
commit9333a4681b17e19c4e6f6780ec209aff165fd968
tree345c0684ee2597b1cb446c64d5ec3f72aa93ab4c
parentb548d908c7c625ae97679f1a8d86960fbe649e10
sparc: Size mondo queues more sanely.

[ Upstream commit 961f65fc41cdc1f9099a6075258816c0db98e390 ]

There is currently no upper limit on the mondo queue sizes we'll use,
which guarentees that we'll eventually his page allocation limits, and
thus allocation failures, due to MAX_ORDER.

Cap the sizes sanely, current limits are:

CPU  MONDO 2 * max_possible_cpus
DEV  MONDO 256 (basically NR_IRQS)
RES  MONDO 128
NRES MONDO 4

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/sparc/kernel/mdesc.c