]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_blk: Dont waste major numbers
authorChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 31 Jan 2008 14:53:53 +0000 (15:53 +0100)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 4 Feb 2008 12:50:10 +0000 (23:50 +1100)
commit22ef75a5acb823671025dd5ae57bea8a2b619424
tree27d2c75ef0ce7e02fcf09d08ce20b0fe51e20362
parentd9e0a3d9a2c83386cf33ed3293f92971aa310b56
virtio_blk: Dont waste major numbers

Rusty,

currently virtio_blk uses one major number per device. While this works
quite well on most systems it is wasteful and will exhaust major numbers
on larger installations.

This patch allocates a major number on init and will use 16 minor numbers
for each disk. That will allow ~64k virtio_blk disks.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/block/virtio_blk.c