block: dasd_genhd: convert to blkdev_reread_part
authorMing Lei <ming.lei@canonical.com>
Wed, 6 May 2015 04:26:26 +0000 (12:26 +0800)
committerJens Axboe <axboe@fb.com>
Wed, 20 May 2015 15:06:15 +0000 (09:06 -0600)
Also remove the obsolete comment.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Tested-by: Jarod Wilson <jarod@redhat.com>
Acked-by: Jarod Wilson <jarod@redhat.com>
Acked-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/s390/block/dasd_genhd.c

index 90f39f79f5d75ae2ad1700223adb519e101abd33..2af461923683abaa1a6cfc27780bb5bf533bd3e9 100644 (file)
@@ -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",