* linux-next: manual merge of the percpu tree with the asm-generic tree
@ 2016-09-27 3:54 Stephen Rothwell
2016-09-27 19:59 ` Arnd Bergmann
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Rothwell @ 2016-09-27 3:54 UTC (permalink / raw)
To: Tejun Heo, Rusty Russell, Christoph Lameter, Ingo Molnar,
Arnd Bergmann
Cc: linux-next, linux-kernel, Chunyan Zhang, Nicholas Piggin
Hi all,
Today's linux-next merge of the percpu tree got a conflict in:
include/asm-generic/percpu.h
between commit:
acbdf0e98066 ("percpu: make this_cpu_generic_read notrace")
from the asm-generic tree and commit:
1b5ca1212742 ("percpu: improve generic percpu modify-return implementation")
from the percpu 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.
--
Cheers,
Stephen Rothwell
diff --cc include/asm-generic/percpu.h
index 70fefec69e61,40e887068da2..000000000000
--- a/include/asm-generic/percpu.h
+++ b/include/asm-generic/percpu.h
@@@ -108,9 -118,9 +118,9 @@@ do {
#define this_cpu_generic_read(pcp) \
({ \
typeof(pcp) __ret; \
- preempt_disable(); \
+ preempt_disable_notrace(); \
- __ret = *this_cpu_ptr(&(pcp)); \
+ __ret = raw_cpu_generic_read(pcp); \
- preempt_enable(); \
+ preempt_enable_notrace(); \
__ret; \
})
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: linux-next: manual merge of the percpu tree with the asm-generic tree
2016-09-27 3:54 linux-next: manual merge of the percpu tree with the asm-generic tree Stephen Rothwell
@ 2016-09-27 19:59 ` Arnd Bergmann
2016-09-27 20:01 ` Tejun Heo
0 siblings, 1 reply; 3+ messages in thread
From: Arnd Bergmann @ 2016-09-27 19:59 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Tejun Heo, Rusty Russell, Christoph Lameter, Ingo Molnar,
linux-next, linux-kernel, Chunyan Zhang, Nicholas Piggin
On Tuesday 27 September 2016, Stephen Rothwell wrote:
> diff --cc include/asm-generic/percpu.h
> index 70fefec69e61,40e887068da2..000000000000
> --- a/include/asm-generic/percpu.h
> +++ b/include/asm-generic/percpu.h
> @@@ -108,9 -118,9 +118,9 @@@ do {
> #define this_cpu_generic_read(pcp) \
> ({ \
> typeof(pcp) __ret; \
> - preempt_disable(); \
> + preempt_disable_notrace(); \
> - __ret = *this_cpu_ptr(&(pcp)); \
> + __ret = raw_cpu_generic_read(pcp); \
> - preempt_enable(); \
> + preempt_enable_notrace(); \
> __ret; \
> })
>
The merge solution seems correct, but this is one of only two trivial
patches I have queued up for asm-generic this time, so I wonder if we could
put the _notrace patch into the percpu tree that already has the
raw_cpu_generic_read change to avoid the conflict.
Arnd
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: linux-next: manual merge of the percpu tree with the asm-generic tree
2016-09-27 19:59 ` Arnd Bergmann
@ 2016-09-27 20:01 ` Tejun Heo
0 siblings, 0 replies; 3+ messages in thread
From: Tejun Heo @ 2016-09-27 20:01 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Stephen Rothwell, Rusty Russell, Christoph Lameter, Ingo Molnar,
linux-next, linux-kernel, Chunyan Zhang, Nicholas Piggin
Hello, Arnd.
On Tue, Sep 27, 2016 at 09:59:32PM +0200, Arnd Bergmann wrote:
> The merge solution seems correct, but this is one of only two trivial
> patches I have queued up for asm-generic this time, so I wonder if we could
> put the _notrace patch into the percpu tree that already has the
> raw_cpu_generic_read change to avoid the conflict.
I'll be happy to pick it up. Can you please send me the patch
refreshed on top of percpu/for-4.9?
Thanks.
--
tejun
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-09-27 20:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-27 3:54 linux-next: manual merge of the percpu tree with the asm-generic tree Stephen Rothwell
2016-09-27 19:59 ` Arnd Bergmann
2016-09-27 20:01 ` Tejun Heo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).