diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2017-11-13 10:35:40 +0100 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2017-11-13 16:33:08 +0100 |
commit | 3cfa3b16dd2f1787f9d19d6da2fe9652d806b387 (patch) | |
tree | 89bd33f5a4387c38a0944caea0193842e1627fb7 /drivers/block | |
parent | b11270853fa3654f08d4a6a03b23ddb220512d8d (diff) | |
download | linux-3cfa3b16dd2f1787f9d19d6da2fe9652d806b387.tar.gz linux-3cfa3b16dd2f1787f9d19d6da2fe9652d806b387.tar.bz2 linux-3cfa3b16dd2f1787f9d19d6da2fe9652d806b387.zip |
rbd: default to single-major device number scheme
It's been 3.5 years, let's turn it on by default. Support in rbd(8)
utility goes back to pre-firefly, "rbd map" has been loading the module
with single_major=Y ever since. However, if the module is already
loaded (whether by hand or at boot time), we end up with single_major=N.
Also, some people don't install rbd(8) and use the sysfs interface
directly.
(With single-major=N, a major number is consumed for every mapping,
imposing a limit of ~240 rbd images per host. single-major=Y allows
mapping thousands of rbd images on a single machine.)
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/rbd.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index 8c132a7fbd2c..38fc5f397fde 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c @@ -449,12 +449,11 @@ static DEFINE_IDA(rbd_dev_id_ida); static struct workqueue_struct *rbd_wq; /* - * Default to false for now, as single-major requires >= 0.75 version of - * userspace rbd utility. + * single-major requires >= 0.75 version of userspace rbd utility. */ -static bool single_major = false; +static bool single_major = true; module_param(single_major, bool, S_IRUGO); -MODULE_PARM_DESC(single_major, "Use a single major number for all rbd devices (default: false)"); +MODULE_PARM_DESC(single_major, "Use a single major number for all rbd devices (default: true)"); static int rbd_img_request_submit(struct rbd_img_request *img_request); |