From: Ming Lei <ming....@canonical.com> Also remove the obsolete comment.
CC: Christoph Hellwig <h...@infradead.org> CC: Jens Axboe <ax...@kernel.dk> CC: Tejun Heo <t...@kernel.org> CC: Alexander Viro <v...@zeniv.linux.org.uk> CC: Markus Pargmann <m...@pengutronix.de> CC: Stefan Weinhuber <w...@de.ibm.com> CC: Stefan Haberland <stefan.haberl...@de.ibm.com> CC: Sebastian Ott <seb...@linux.vnet.ibm.com> CC: Fabian Frederick <f...@skynet.be> CC: Ming Lei <ming....@canonical.com> CC: David Herrmann <dh.herrm...@gmail.com> CC: Mike Galbraith <bitbuc...@online.de> CC: Andrew Morton <a...@linux-foundation.org> CC: Peter Zijlstra <pet...@infradead.org> CC: nbd-gene...@lists.sourceforge.net CC: linux-s...@vger.kernel.org Signed-off-by: Ming Lei <ming....@canonical.com> Signed-off-by: Jarod Wilson <ja...@redhat.com> --- drivers/s390/block/dasd_genhd.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/s390/block/dasd_genhd.c b/drivers/s390/block/dasd_genhd.c index 90f39f7..8026585 100644 --- a/drivers/s390/block/dasd_genhd.c +++ b/drivers/s390/block/dasd_genhd.c @@ -116,14 +116,11 @@ int dasd_scan_partitions(struct dasd_block *block) rc); return -ENODEV; } - /* - * See fs/partition/check.c:register_disk,rescan_partitions - * Can't call rescan_partitions directly. Use ioctl. - */ - rc = ioctl_by_bdev(bdev, BLKRRPART, 0); + + rc = blkdev_reread_part(bdev); while (rc == -EBUSY && retry > 0) { schedule(); - rc = ioctl_by_bdev(bdev, BLKRRPART, 0); + rc = blkdev_reread_part(bdev); retry--; DBF_DEV_EVENT(DBF_ERR, block->base, "scan partitions error, retry %d rc %d", @@ -138,7 +135,7 @@ int dasd_scan_partitions(struct dasd_block *block) * dasd_generic_set_offline). As long as the partition * detection is running no offline should be allowed. That * is why the assignment to device->bdev is done AFTER - * the BLKRRPART ioctl. + * the blkdev_reread_part() call. */ block->bdev = bdev; return 0; -- 1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/