Skip to contentSkip to conversation

linux-next: manual merge of the nvdimm tree with the vhost tree

PATCH Mark Brown 3 participants 3 messages Feb 4

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

Hi all,

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

drivers/nvdimm/nd_virtio.c

between commit:

b381542686726 ("nvdimm: virtio_pmem: serialize flush requests")

from the vhost tree and commit:

c4ae8ec088db0 ("nvdimm: virtio_pmem: serialize flush requests")

from the nvdimm 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.

(note that the changes to add out_unlock are dropped)

drivers/nvdimm/nd_virtio.c +0 -0
diff --cc drivers/nvdimm/nd_virtio.c
index 827a17fe7c710,af82385be7c6a..0000000000000
@@@ -44,8 -44,7 +44,8 @@@ static int virtio_pmem_flush(struct nd_
  	unsigned long flags;
  	int err, err1;
  
 +	might_sleep();
- 	mutex_lock(&vpmem->flush_lock);
+ 	guard(mutex)(&vpmem->flush_lock);
  
  	/*
  	 * Don't bother to submit the request to the device if the device is
#1 lore raw
Quoted 9 lines · Mark Brown

Hi all,

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

drivers/nvdimm/nd_virtio.c

between commit:

b381542686726 ("nvdimm: virtio_pmem: serialize flush requests")

Michael,

I assume you will drop the v1?

Ira

Quoted 30 lines

from the vhost tree and commit:

c4ae8ec088db0 ("nvdimm: virtio_pmem: serialize flush requests")

from the nvdimm 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.

(note that the changes to add out_unlock are dropped)

drivers/nvdimm/nd_virtio.c +1 -1
diff --cc drivers/nvdimm/nd_virtio.c
index 827a17fe7c710,af82385be7c6a..0000000000000
@@@ -44,8 -44,7 +44,8 @@@ static int virtio_pmem_flush(struct nd_
  	unsigned long flags;
  	int err, err1;
 
 +	might_sleep();
- 	mutex_lock(&vpmem->flush_lock);
+ 	guard(mutex)(&vpmem->flush_lock);
 
  	/*
  	 * Don't bother to submit the request to the device if the device is
#2 lore raw
Quoted 9 lines · Ira Weiny
Quoted 8 lines · Mark Brown

Hi all,

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

drivers/nvdimm/nd_virtio.c

between commit:

Quoted 7 lines
Quoted 1 line

b381542686726 ("nvdimm: virtio_pmem: serialize flush requests")

Michael,

I assume you will drop the v1?

Ira

just did that.

Quoted 31 lines
Quoted 30 lines

from the vhost tree and commit:

c4ae8ec088db0 ("nvdimm: virtio_pmem: serialize flush requests")

from the nvdimm 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.

(note that the changes to add out_unlock are dropped)

drivers/nvdimm/nd_virtio.c +1 -1
diff --cc drivers/nvdimm/nd_virtio.c
index 827a17fe7c710,af82385be7c6a..0000000000000
@@@ -44,8 -44,7 +44,8 @@@ static int virtio_pmem_flush(struct nd_
  	unsigned long flags;
  	int err, err1;
 
 +	might_sleep();
- 	mutex_lock(&vpmem->flush_lock);
+ 	guard(mutex)(&vpmem->flush_lock);
 
  	/*
  	 * Don't bother to submit the request to the device if the device is