/openbmc/linux/drivers/s390/block/ |
H A D | dasd_proc.c | diff f331c0296f2a9fee0d396a70598b954062603015 Wed Sep 03 02:01:48 CDT 2008 Tejun Heo <tj@kernel.org> block: don't depend on consecutive minor space
* Implement disk_devt() and part_devt() and use them to directly access devt instead of computing it from ->major and ->first_minor.
Note that all references to ->major and ->first_minor outside of block layer is used to determine devt of the disk (the part0) and as ->major and ->first_minor will continue to represent devt for the disk, converting these users aren't strictly necessary. However, convert them for consistency.
* Implement disk_max_parts() to avoid directly deferencing genhd->minors.
* Update bdget_disk() such that it doesn't assume consecutive minor space.
* Move devt computation from register_disk() to add_disk() and make it the only one (all other usages use the initially determined value).
These changes clean up the code and will help disk->part dereference fix and extended block device numbers.
Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
|
H A D | dcssblk.c | diff d0591485e15ccd908f91058f7da134248dcdbbb3 Fri Jun 12 03:26:35 CDT 2009 Gerald Schaefer <gerald.schaefer@de.ibm.com> [S390] dcssblk: revert devt conversion
git commit f331c0296f2a9fee0d396a70598b954062603015 changed users of ->first_minor to devt. This broke device handling in dcssblk, so that no additional devices could be added after the first one.
This patch reverts the devt conversion to the previous ->first_minor handling.
Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> diff f331c0296f2a9fee0d396a70598b954062603015 Wed Sep 03 02:01:48 CDT 2008 Tejun Heo <tj@kernel.org> block: don't depend on consecutive minor space
* Implement disk_devt() and part_devt() and use them to directly access devt instead of computing it from ->major and ->first_minor.
Note that all references to ->major and ->first_minor outside of block layer is used to determine devt of the disk (the part0) and as ->major and ->first_minor will continue to represent devt for the disk, converting these users aren't strictly necessary. However, convert them for consistency.
* Implement disk_max_parts() to avoid directly deferencing genhd->minors.
* Update bdget_disk() such that it doesn't assume consecutive minor space.
* Move devt computation from register_disk() to add_disk() and make it the only one (all other usages use the initially determined value).
These changes clean up the code and will help disk->part dereference fix and extended block device numbers.
Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
|
/openbmc/linux/drivers/block/ |
H A D | ps3disk.c | diff f331c0296f2a9fee0d396a70598b954062603015 Wed Sep 03 02:01:48 CDT 2008 Tejun Heo <tj@kernel.org> block: don't depend on consecutive minor space
* Implement disk_devt() and part_devt() and use them to directly access devt instead of computing it from ->major and ->first_minor.
Note that all references to ->major and ->first_minor outside of block layer is used to determine devt of the disk (the part0) and as ->major and ->first_minor will continue to represent devt for the disk, converting these users aren't strictly necessary. However, convert them for consistency.
* Implement disk_max_parts() to avoid directly deferencing genhd->minors.
* Update bdget_disk() such that it doesn't assume consecutive minor space.
* Move devt computation from register_disk() to add_disk() and make it the only one (all other usages use the initially determined value).
These changes clean up the code and will help disk->part dereference fix and extended block device numbers.
Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
|
H A D | pktcdvd.c | diff f331c0296f2a9fee0d396a70598b954062603015 Wed Sep 03 02:01:48 CDT 2008 Tejun Heo <tj@kernel.org> block: don't depend on consecutive minor space
* Implement disk_devt() and part_devt() and use them to directly access devt instead of computing it from ->major and ->first_minor.
Note that all references to ->major and ->first_minor outside of block layer is used to determine devt of the disk (the part0) and as ->major and ->first_minor will continue to represent devt for the disk, converting these users aren't strictly necessary. However, convert them for consistency.
* Implement disk_max_parts() to avoid directly deferencing genhd->minors.
* Update bdget_disk() such that it doesn't assume consecutive minor space.
* Move devt computation from register_disk() to add_disk() and make it the only one (all other usages use the initially determined value).
These changes clean up the code and will help disk->part dereference fix and extended block device numbers.
Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
|
/openbmc/linux/drivers/memstick/core/ |
H A D | mspro_block.c | diff f331c0296f2a9fee0d396a70598b954062603015 Wed Sep 03 02:01:48 CDT 2008 Tejun Heo <tj@kernel.org> block: don't depend on consecutive minor space
* Implement disk_devt() and part_devt() and use them to directly access devt instead of computing it from ->major and ->first_minor.
Note that all references to ->major and ->first_minor outside of block layer is used to determine devt of the disk (the part0) and as ->major and ->first_minor will continue to represent devt for the disk, converting these users aren't strictly necessary. However, convert them for consistency.
* Implement disk_max_parts() to avoid directly deferencing genhd->minors.
* Update bdget_disk() such that it doesn't assume consecutive minor space.
* Move devt computation from register_disk() to add_disk() and make it the only one (all other usages use the initially determined value).
These changes clean up the code and will help disk->part dereference fix and extended block device numbers.
Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
|
/openbmc/linux/drivers/md/ |
H A D | dm-stripe.c | diff f331c0296f2a9fee0d396a70598b954062603015 Wed Sep 03 02:01:48 CDT 2008 Tejun Heo <tj@kernel.org> block: don't depend on consecutive minor space
* Implement disk_devt() and part_devt() and use them to directly access devt instead of computing it from ->major and ->first_minor.
Note that all references to ->major and ->first_minor outside of block layer is used to determine devt of the disk (the part0) and as ->major and ->first_minor will continue to represent devt for the disk, converting these users aren't strictly necessary. However, convert them for consistency.
* Implement disk_max_parts() to avoid directly deferencing genhd->minors.
* Update bdget_disk() such that it doesn't assume consecutive minor space.
* Move devt computation from register_disk() to add_disk() and make it the only one (all other usages use the initially determined value).
These changes clean up the code and will help disk->part dereference fix and extended block device numbers.
Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
|
H A D | dm-ioctl.c | diff f331c0296f2a9fee0d396a70598b954062603015 Wed Sep 03 02:01:48 CDT 2008 Tejun Heo <tj@kernel.org> block: don't depend on consecutive minor space
* Implement disk_devt() and part_devt() and use them to directly access devt instead of computing it from ->major and ->first_minor.
Note that all references to ->major and ->first_minor outside of block layer is used to determine devt of the disk (the part0) and as ->major and ->first_minor will continue to represent devt for the disk, converting these users aren't strictly necessary. However, convert them for consistency.
* Implement disk_max_parts() to avoid directly deferencing genhd->minors.
* Update bdget_disk() such that it doesn't assume consecutive minor space.
* Move devt computation from register_disk() to add_disk() and make it the only one (all other usages use the initially determined value).
These changes clean up the code and will help disk->part dereference fix and extended block device numbers.
Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
|
H A D | dm.c | diff f331c0296f2a9fee0d396a70598b954062603015 Wed Sep 03 02:01:48 CDT 2008 Tejun Heo <tj@kernel.org> block: don't depend on consecutive minor space
* Implement disk_devt() and part_devt() and use them to directly access devt instead of computing it from ->major and ->first_minor.
Note that all references to ->major and ->first_minor outside of block layer is used to determine devt of the disk (the part0) and as ->major and ->first_minor will continue to represent devt for the disk, converting these users aren't strictly necessary. However, convert them for consistency.
* Implement disk_max_parts() to avoid directly deferencing genhd->minors.
* Update bdget_disk() such that it doesn't assume consecutive minor space.
* Move devt computation from register_disk() to add_disk() and make it the only one (all other usages use the initially determined value).
These changes clean up the code and will help disk->part dereference fix and extended block device numbers.
Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
|
/openbmc/linux/drivers/scsi/ |
H A D | sr.c | diff f331c0296f2a9fee0d396a70598b954062603015 Wed Sep 03 02:01:48 CDT 2008 Tejun Heo <tj@kernel.org> block: don't depend on consecutive minor space
* Implement disk_devt() and part_devt() and use them to directly access devt instead of computing it from ->major and ->first_minor.
Note that all references to ->major and ->first_minor outside of block layer is used to determine devt of the disk (the part0) and as ->major and ->first_minor will continue to represent devt for the disk, converting these users aren't strictly necessary. However, convert them for consistency.
* Implement disk_max_parts() to avoid directly deferencing genhd->minors.
* Update bdget_disk() such that it doesn't assume consecutive minor space.
* Move devt computation from register_disk() to add_disk() and make it the only one (all other usages use the initially determined value).
These changes clean up the code and will help disk->part dereference fix and extended block device numbers.
Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
|
/openbmc/linux/block/ |
H A D | ioctl.c | diff f331c0296f2a9fee0d396a70598b954062603015 Wed Sep 03 02:01:48 CDT 2008 Tejun Heo <tj@kernel.org> block: don't depend on consecutive minor space
* Implement disk_devt() and part_devt() and use them to directly access devt instead of computing it from ->major and ->first_minor.
Note that all references to ->major and ->first_minor outside of block layer is used to determine devt of the disk (the part0) and as ->major and ->first_minor will continue to represent devt for the disk, converting these users aren't strictly necessary. However, convert them for consistency.
* Implement disk_max_parts() to avoid directly deferencing genhd->minors.
* Update bdget_disk() such that it doesn't assume consecutive minor space.
* Move devt computation from register_disk() to add_disk() and make it the only one (all other usages use the initially determined value).
These changes clean up the code and will help disk->part dereference fix and extended block device numbers.
Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
|
H A D | genhd.c | diff 41b8c853a495438208faa5be03bbb0050859163b Wed Feb 18 03:33:59 CST 2009 Neil Brown <neilb@suse.de> block: fix booting from partitioned md array
Hi Tejun,
it looks like your commit:
block: don't depend on consecutive minor space f331c0296f2a9fee0d396a70598b954062603015
broke a particular case for booting from partitioned md/raid devices. That is the second time this has been broken recently. The previous time was fixed by
block: do_mounts - accept root=<non-existant partition> 30f2f0eb4bd2c43d10a8b0d872c6e5ad8f31c9a0
Because the data isn't available when an md device is first created (we add disks and set it up after creation), the initial partition scan finds nothing. It is not until the device is opened that another partition scan happens and finds something.
So at the point where the kernel parameter "root=/dev/md_d0p1" is being parsed, md_d0 exists, but md_d0p1 does not. However if we let blk_lookup_devt return the correct device number even though the device doesn't exist, then the attempt to mount it will successfully find the partition.
I have tried in the past to find a way to get the partition table to be read as soon as the array is assembled but that proved impossible (at the time). I don't remember the details, and could possibly revisit it. However it would be really nice if blk_lookup_devt could be adjusted to again accept non existant partitions.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com> diff f331c0296f2a9fee0d396a70598b954062603015 Wed Sep 03 02:01:48 CDT 2008 Tejun Heo <tj@kernel.org> block: don't depend on consecutive minor space
* Implement disk_devt() and part_devt() and use them to directly access devt instead of computing it from ->major and ->first_minor.
Note that all references to ->major and ->first_minor outside of block layer is used to determine devt of the disk (the part0) and as ->major and ->first_minor will continue to represent devt for the disk, converting these users aren't strictly necessary. However, convert them for consistency.
* Implement disk_max_parts() to avoid directly deferencing genhd->minors.
* Update bdget_disk() such that it doesn't assume consecutive minor space.
* Move devt computation from register_disk() to add_disk() and make it the only one (all other usages use the initially determined value).
These changes clean up the code and will help disk->part dereference fix and extended block device numbers.
Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
|
/openbmc/linux/drivers/char/ |
H A D | random.c | diff f331c0296f2a9fee0d396a70598b954062603015 Wed Sep 03 02:01:48 CDT 2008 Tejun Heo <tj@kernel.org> block: don't depend on consecutive minor space
* Implement disk_devt() and part_devt() and use them to directly access devt instead of computing it from ->major and ->first_minor.
Note that all references to ->major and ->first_minor outside of block layer is used to determine devt of the disk (the part0) and as ->major and ->first_minor will continue to represent devt for the disk, converting these users aren't strictly necessary. However, convert them for consistency.
* Implement disk_max_parts() to avoid directly deferencing genhd->minors.
* Update bdget_disk() such that it doesn't assume consecutive minor space.
* Move devt computation from register_disk() to add_disk() and make it the only one (all other usages use the initially determined value).
These changes clean up the code and will help disk->part dereference fix and extended block device numbers.
Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
|