All of lore.kernel.org
 help / color / mirror / Atom feed
* [RESEND PATCH] irq_work: Don't reinvent the wheel but use existing llist API
@ 2017-05-12  0:45 Byungchul Park
  2017-05-30  5:29 ` Byungchul Park
  0 siblings, 1 reply; 8+ messages in thread
From: Byungchul Park @ 2017-05-12  0:45 UTC (permalink / raw)
  To: fweisbec; +Cc: linux-kernel, kernel-team

Although llist provides proper APIs, they are not used. Make them used.

Signed-off-by: Byungchul Park <byungchul.park@lge.com>
---
 kernel/irq_work.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/kernel/irq_work.c b/kernel/irq_work.c
index bcf107c..e2ebe8c 100644
--- a/kernel/irq_work.c
+++ b/kernel/irq_work.c
@@ -138,11 +138,7 @@ static void irq_work_run_list(struct llist_head *list)
 		return;
 
 	llnode = llist_del_all(list);
-	while (llnode != NULL) {
-		work = llist_entry(llnode, struct irq_work, llnode);
-
-		llnode = llist_next(llnode);
-
+	llist_for_each_entry(work, llnode, llnode) {
 		/*
 		 * Clear the PENDING bit, after this point the @work
 		 * can be re-used.
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [RESEND PATCH] irq_work: Don't reinvent the wheel but use existing llist API
  2017-05-12  0:45 [RESEND PATCH] irq_work: Don't reinvent the wheel but use existing llist API Byungchul Park
@ 2017-05-30  5:29 ` Byungchul Park
  2017-05-31 14:04   ` Frederic Weisbecker
  0 siblings, 1 reply; 8+ messages in thread
From: Byungchul Park @ 2017-05-30  5:29 UTC (permalink / raw)
  To: fweisbec, peterz, mingo, rostedt; +Cc: linux-kernel, kernel-team

On Fri, May 12, 2017 at 09:45:35AM +0900, Byungchul Park wrote:
> Although llist provides proper APIs, they are not used. Make them used.

+to peterz@infradead.org
+to mingo@kernel.org
+to rostedt@goodmis.org

I am not sure whom should I send this patch to..
Could you check this if you are right person?

> 
> Signed-off-by: Byungchul Park <byungchul.park@lge.com>
> ---
>  kernel/irq_work.c | 6 +-----
>  1 file changed, 1 insertion(+), 5 deletions(-)
> 
> diff --git a/kernel/irq_work.c b/kernel/irq_work.c
> index bcf107c..e2ebe8c 100644
> --- a/kernel/irq_work.c
> +++ b/kernel/irq_work.c
> @@ -138,11 +138,7 @@ static void irq_work_run_list(struct llist_head *list)
>  		return;
>  
>  	llnode = llist_del_all(list);
> -	while (llnode != NULL) {
> -		work = llist_entry(llnode, struct irq_work, llnode);
> -
> -		llnode = llist_next(llnode);
> -
> +	llist_for_each_entry(work, llnode, llnode) {
>  		/*
>  		 * Clear the PENDING bit, after this point the @work
>  		 * can be re-used.
> -- 
> 1.9.1

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [RESEND PATCH] irq_work: Don't reinvent the wheel but use existing llist API
  2017-05-30  5:29 ` Byungchul Park
@ 2017-05-31 14:04   ` Frederic Weisbecker
  2017-06-01  7:29     ` Byungchul Park
                       ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Frederic Weisbecker @ 2017-05-31 14:04 UTC (permalink / raw)
  To: Byungchul Park; +Cc: peterz, mingo, rostedt, linux-kernel, kernel-team

On Tue, May 30, 2017 at 02:29:20PM +0900, Byungchul Park wrote:
> On Fri, May 12, 2017 at 09:45:35AM +0900, Byungchul Park wrote:
> > Although llist provides proper APIs, they are not used. Make them used.
> 
> +to peterz@infradead.org
> +to mingo@kernel.org
> +to rostedt@goodmis.org
> 
> I am not sure whom should I send this patch to..
> Could you check this if you are right person?

I'll take it.

Thanks!

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [RESEND PATCH] irq_work: Don't reinvent the wheel but use existing llist API
  2017-05-31 14:04   ` Frederic Weisbecker
@ 2017-06-01  7:29     ` Byungchul Park
  2017-09-05  2:38     ` Byungchul Park
                       ` (3 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: Byungchul Park @ 2017-06-01  7:29 UTC (permalink / raw)
  To: Frederic Weisbecker; +Cc: peterz, mingo, rostedt, linux-kernel, kernel-team

On Wed, May 31, 2017 at 04:04:17PM +0200, Frederic Weisbecker wrote:
> On Tue, May 30, 2017 at 02:29:20PM +0900, Byungchul Park wrote:
> > On Fri, May 12, 2017 at 09:45:35AM +0900, Byungchul Park wrote:
> > > Although llist provides proper APIs, they are not used. Make them used.
> > 
> > +to peterz@infradead.org
> > +to mingo@kernel.org
> > +to rostedt@goodmis.org
> > 
> > I am not sure whom should I send this patch to..
> > Could you check this if you are right person?
> 
> I'll take it.

Hi, Frederic,

Thank you.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [RESEND PATCH] irq_work: Don't reinvent the wheel but use existing llist API
  2017-05-31 14:04   ` Frederic Weisbecker
  2017-06-01  7:29     ` Byungchul Park
@ 2017-09-05  2:38     ` Byungchul Park
  2017-09-27  0:00     ` Byungchul Park
                       ` (2 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: Byungchul Park @ 2017-09-05  2:38 UTC (permalink / raw)
  To: Frederic Weisbecker; +Cc: peterz, mingo, rostedt, linux-kernel, kernel-team

On Wed, May 31, 2017 at 04:04:17PM +0200, Frederic Weisbecker wrote:
> On Tue, May 30, 2017 at 02:29:20PM +0900, Byungchul Park wrote:
> > On Fri, May 12, 2017 at 09:45:35AM +0900, Byungchul Park wrote:
> > > Although llist provides proper APIs, they are not used. Make them used.
> > 
> > +to peterz@infradead.org
> > +to mingo@kernel.org
> > +to rostedt@goodmis.org
> > 
> > I am not sure whom should I send this patch to..
> > Could you check this if you are right person?
> 
> I'll take it.

I would be appriciated if you take this at this window :)

> 
> Thanks!

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [RESEND PATCH] irq_work: Don't reinvent the wheel but use existing llist API
  2017-05-31 14:04   ` Frederic Weisbecker
  2017-06-01  7:29     ` Byungchul Park
  2017-09-05  2:38     ` Byungchul Park
@ 2017-09-27  0:00     ` Byungchul Park
  2017-10-18  5:11     ` Byungchul Park
  2017-10-25  5:51     ` Byungchul Park
  4 siblings, 0 replies; 8+ messages in thread
From: Byungchul Park @ 2017-09-27  0:00 UTC (permalink / raw)
  To: Frederic Weisbecker; +Cc: peterz, mingo, rostedt, linux-kernel, kernel-team

On Wed, May 31, 2017 at 04:04:17PM +0200, Frederic Weisbecker wrote:
> On Tue, May 30, 2017 at 02:29:20PM +0900, Byungchul Park wrote:
> > On Fri, May 12, 2017 at 09:45:35AM +0900, Byungchul Park wrote:
> > > Although llist provides proper APIs, they are not used. Make them used.
> > 
> > +to peterz@infradead.org
> > +to mingo@kernel.org
> > +to rostedt@goodmis.org
> > 
> > I am not sure whom should I send this patch to..
> > Could you check this if you are right person?
> 
> I'll take it.

Hello,

You seem to have forgotten this. Could you check this?

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [RESEND PATCH] irq_work: Don't reinvent the wheel but use existing llist API
  2017-05-31 14:04   ` Frederic Weisbecker
                       ` (2 preceding siblings ...)
  2017-09-27  0:00     ` Byungchul Park
@ 2017-10-18  5:11     ` Byungchul Park
  2017-10-25  5:51     ` Byungchul Park
  4 siblings, 0 replies; 8+ messages in thread
From: Byungchul Park @ 2017-10-18  5:11 UTC (permalink / raw)
  To: Frederic Weisbecker; +Cc: peterz, mingo, rostedt, linux-kernel, kernel-team

On Wed, May 31, 2017 at 04:04:17PM +0200, Frederic Weisbecker wrote:
> On Tue, May 30, 2017 at 02:29:20PM +0900, Byungchul Park wrote:
> > On Fri, May 12, 2017 at 09:45:35AM +0900, Byungchul Park wrote:
> > > Although llist provides proper APIs, they are not used. Make them used.
> > 
> > +to peterz@infradead.org
> > +to mingo@kernel.org
> > +to rostedt@goodmis.org
> > 
> > I am not sure whom should I send this patch to..
> > Could you check this if you are right person?
> 
> I'll take it.

Hello Frederic,

Any problem to take this?

Thanks,
Byungchul

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [RESEND PATCH] irq_work: Don't reinvent the wheel but use existing llist API
  2017-05-31 14:04   ` Frederic Weisbecker
                       ` (3 preceding siblings ...)
  2017-10-18  5:11     ` Byungchul Park
@ 2017-10-25  5:51     ` Byungchul Park
  4 siblings, 0 replies; 8+ messages in thread
From: Byungchul Park @ 2017-10-25  5:51 UTC (permalink / raw)
  To: Frederic Weisbecker; +Cc: peterz, mingo, rostedt, linux-kernel, kernel-team

On Wed, May 31, 2017 at 04:04:17PM +0200, Frederic Weisbecker wrote:
> On Tue, May 30, 2017 at 02:29:20PM +0900, Byungchul Park wrote:
> > On Fri, May 12, 2017 at 09:45:35AM +0900, Byungchul Park wrote:
> > > Although llist provides proper APIs, they are not used. Make them used.
> > 
> > +to peterz@infradead.org
> > +to mingo@kernel.org
> > +to rostedt@goodmis.org
> > 
> > I am not sure whom should I send this patch to..
> > Could you check this if you are right person?
> 
> I'll take it.

Hello Frederic,

Please let me know if there are some problems with this.

If so, I will request it to others.

Thanks.

> Thanks!

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-10-25  5:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-12  0:45 [RESEND PATCH] irq_work: Don't reinvent the wheel but use existing llist API Byungchul Park
2017-05-30  5:29 ` Byungchul Park
2017-05-31 14:04   ` Frederic Weisbecker
2017-06-01  7:29     ` Byungchul Park
2017-09-05  2:38     ` Byungchul Park
2017-09-27  0:00     ` Byungchul Park
2017-10-18  5:11     ` Byungchul Park
2017-10-25  5:51     ` Byungchul Park

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.