Skip to content

fix NVMe multipath partition diskstats - #1153

Closed
blktests-ci[bot] wants to merge 1 commit into
for-next_basefrom
series/1147789=>for-next
Closed

fix NVMe multipath partition diskstats#1153
blktests-ci[bot] wants to merge 1 commit into
for-next_basefrom
series/1147789=>for-next

Conversation

@blktests-ci

@blktests-ci blktests-ci Bot commented Aug 18, 2026

Copy link
Copy Markdown

Pull request for series with
subject: fix NVMe multipath partition diskstats
version: 2
url: https://patchwork.kernel.org/project/linux-block/list/?series=1147789

@blktests-ci

blktests-ci Bot commented Aug 18, 2026

Copy link
Copy Markdown
Author

Upstream branch: 8421340
series: https://patchwork.kernel.org/project/linux-block/list/?series=1147789
version: 2

Pull request is NOT updated. Failed to apply https://patchwork.kernel.org/project/linux-block/list/?series=1147789
error message:

Cmd('git') failed due to: exit code(128)
  cmdline: git am --3way
  stdout: 'Applying: block: scan partitions for hidden disks
Using index info to reconstruct a base tree...
M	block/genhd.c
M	include/linux/blkdev.h
Falling back to patching base and 3-way merge...
Auto-merging include/linux/blkdev.h
Auto-merging block/genhd.c
CONFLICT (content): Merge conflict in block/genhd.c
Patch failed at 0001 block: scan partitions for hidden disks
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".'
  stderr: 'error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch'

conflict:

diff --cc block/genhd.c
index f1990c7cdfb9,05301ee5d4ca..000000000000
--- a/block/genhd.c
+++ b/block/genhd.c
@@@ -406,11 -406,15 +406,22 @@@ static void add_disk_final(struct gendi
  {
  	struct device *ddev = disk_to_dev(disk);
  
++<<<<<<< HEAD
 +	if (!(disk->flags & GENHD_FL_HIDDEN)) {
 +		bdev_add(disk->part0, ddev->devt);
 +		if (get_capacity(disk))
 +			disk_scan_partitions(disk, BLK_OPEN_READ);
++=======
+ 	/* Make sure the first partition scan will be proceed */
+ 	if (get_capacity(disk) && disk_has_partscan(disk))
+ 		set_bit(GD_NEED_PART_SCAN, &disk->state);
  
+ 	bdev_add(disk->part0, ddev->devt);
+ 	if (get_capacity(disk))
+ 		disk_scan_partitions(disk, BLK_OPEN_READ);
++>>>>>>> block: scan partitions for hidden disks
+ 
+ 	if (!(disk->flags & GENHD_FL_HIDDEN)) {
  		/*
  		 * Announce the disk and partitions after all partitions are
  		 * created. (for hidden disks uevents remain suppressed forever)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants