Skip to content

Commit 00f21d0

Browse files
committed
Update 0006-block-add-no_part_scan-module-parameter.patch for 6.4
1 parent 573b28e commit 00f21d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

0006-block-add-no_part_scan-module-parameter.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ index 06b642b23a07..15769cadd687 100644
3535
* device_add_disk - add disk information to kernel list
3636
* @parent: parent device for the disk
3737
@@ -812,6 +821,9 @@ static void __device_add_disk(struct device *parent, struct gendisk *disk,
38-
*/
39-
elevator_init_mq(disk->queue);
38+
/* Mark bdev as having a submit_bio, if needed */
39+
disk->part0->bd_has_submit_bio = disk->fops->submit_bio != NULL;
4040

4141
+ if (disk_no_part_scan)
4242
+ disk->flags |= GENHD_FL_NO_PART;

0 commit comments

Comments
 (0)