]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
[PATCH] nbd: Don't create all MAX_NBD devices by default all the time
authorLars Marowsky-Bree <lmb@suse.de>
Sun, 1 May 2005 15:59:07 +0000 (08:59 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 1 May 2005 15:59:07 +0000 (08:59 -0700)
commit40be0c28b33ff0821594a3fa7126354dfe6eccd1
treea62e93e866a2c7fdbe732adb634a6bba294beded
parent4750e2c0c59e0c84c6c036b3d96ebd88365ae7ee
[PATCH] nbd: Don't create all MAX_NBD devices by default all the time

This patches adds the "nbds_max" parameter to the nbd kernel module, which
limits the number of nbds allocated.  Previously, always all 128 entries
were allocated unconditionally, which used to waste resources and
needlessly flood the hotplug system with events.  (Defaults to 16 now.)

Signed-off-by: Lars Marowsky-Bree <lmb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/block/nbd.c