Skip to contentSkip to conversation

linux-next: manual merge of the block tree with Linus' tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Nov 25, 2021 – Nov 26, 2021 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

Today's linux-next merge of the block tree got a conflict in:

block/bdev.c

between commit:

efcf5932230b ("block: avoid to touch unloaded module instance when opening bdev")

from Linus' tree and commit:

a1525fbf1d76 ("block: remove the GENHD_FL_HIDDEN check in blkdev_get_no_open")

from the block tree.

I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.

Signature · 19 lines
Cheers,
Stephen Rothwell

diff --cc block/bdev.c
index b1d087e5e205,ae063041f291..000000000000
--- a/block/bdev.c
+++ b/block/bdev.c
@@@ -753,10 -753,10 +753,6 @@@ struct block_device *blkdev_get_no_open
  
  	if (!bdev)
  		return NULL;
- 	if ((bdev->bd_disk->flags & GENHD_FL_HIDDEN)) {
 -	if (!try_module_get(bdev->bd_disk->fops->owner)) {
--		put_device(&bdev->bd_device);
--		return NULL;
--	}
  
  	return bdev;
  }
#1 lore raw
Quoted 6 lines · Stephen Rothwell

Hi all,

Today's linux-next merge of the block tree got a conflict in:

block/bdev.c

Quoted 8 lines

between commit:

efcf5932230b ("block: avoid to touch unloaded module instance when opening bdev")

from Linus' tree and commit:

a1525fbf1d76 ("block: remove the GENHD_FL_HIDDEN check in blkdev_get_no_open")

The merge looks good, thanks.