]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: default to single-major device number scheme
authorIlya Dryomov <idryomov@gmail.com>
Mon, 13 Nov 2017 09:35:40 +0000 (10:35 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 13 Nov 2017 15:33:08 +0000 (16:33 +0100)
commit9136bcce046566fa839e77c23821d3aa9a26402d
tree89bd33f5a4387c38a0944caea0193842e1627fb7
parent9f4efc13b127b8fcaf1b4935b0c934417c15a6ee
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>
drivers/block/rbd.c