diff options
author | Ed Cashin <ecashin@coraid.com> | 2012-10-04 20:16:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-05 14:05:29 -0400 |
commit | 08b60623510aebddd9ac4bf61dbe2d39313dddfd (patch) | |
tree | 0c5741a3da8c2cedca8922ac45e7a0be72afcbfe /drivers/block/aoe | |
parent | 7159e969d1963f19e7550aafd234b0c5361e5d69 (diff) |
aoe: make dynamic block minor numbers the default
Because udev use is so widespread, making the old static mapping the
default is too conservative, given the severe limitations it places on
usable AoE addresses. Storage virtualization and larger shelves have made
the old limitations too confining.
These changes make the dynamic block device minor numbers the default,
removing the limitations on usable AoE addresses.
The static arrangement is still available with aoe_dyndevs=0, and the
aoe-stat tool from the userland aoetools package, the user space
counterpart to the aoe driver, recognizes the case where there is a
mismatch between the minor number in sysfs and the minor number in a
special device file.
Signed-off-by: Ed Cashin <ecashin@coraid.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/block/aoe')
-rw-r--r-- | drivers/block/aoe/aoedev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/aoe/aoedev.c b/drivers/block/aoe/aoedev.c index 3d494fdfb43d..90e5b537f94b 100644 --- a/drivers/block/aoe/aoedev.c +++ b/drivers/block/aoe/aoedev.c | |||
@@ -19,7 +19,7 @@ static void aoedev_freedev(struct aoedev *); | |||
19 | static void freetgt(struct aoedev *d, struct aoetgt *t); | 19 | static void freetgt(struct aoedev *d, struct aoetgt *t); |
20 | static void skbpoolfree(struct aoedev *d); | 20 | static void skbpoolfree(struct aoedev *d); |
21 | 21 | ||
22 | static int aoe_dyndevs; | 22 | static int aoe_dyndevs = 1; |
23 | module_param(aoe_dyndevs, int, 0644); | 23 | module_param(aoe_dyndevs, int, 0644); |
24 | MODULE_PARM_DESC(aoe_dyndevs, "Use dynamic minor numbers for devices."); | 24 | MODULE_PARM_DESC(aoe_dyndevs, "Use dynamic minor numbers for devices."); |
25 | 25 | ||