From: Tejun Heo <tj@kernel.org>
To: Zlatko Calusic <zlatko.calusic@iskon.hr>
Cc: linux-kernel@vger.kernel.org
Subject: Re: High context switch rate, ksoftirqd's chewing cpu
Date: Sat, 1 Dec 2012 06:38:52 -0800 [thread overview]
Message-ID: <20121201143852.GA2685@htj.dyndns.org> (raw)
In-Reply-To: <50B9E4C1.2050002@iskon.hr>
Hello,
On Sat, Dec 01, 2012 at 12:06:41PM +0100, Zlatko Calusic wrote:
> I have good news. The patch fixes the regression!
>
> To doublecheck and provide you additional data, I updated to the latest Linus
> kernel (commit 7c17e48), recompiled (WITHOUT the patch), rebooted and this is
> what vmstat 1 looks like:
Awesome, can you please test the following patch too? Thanks!
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index 042d221..94964d1 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -1364,6 +1364,11 @@ static void __queue_delayed_work(int cpu, struct workqueue_struct *wq,
BUG_ON(timer_pending(timer));
BUG_ON(!list_empty(&work->entry));
+ if (!delay) {
+ __queue_work(cpu, wq, &dwork->work);
+ return;
+ }
+
timer_stats_timer_set_start_info(&dwork->timer);
/*
@@ -1417,9 +1422,6 @@ bool queue_delayed_work_on(int cpu, struct workqueue_struct *wq,
bool ret = false;
unsigned long flags;
- if (!delay)
- return queue_work_on(cpu, wq, &dwork->work);
-
/* read the comment in __queue_work() */
local_irq_save(flags);
next prev parent reply other threads:[~2012-12-01 14:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-17 13:01 Zlatko Calusic
2012-11-30 22:52 ` Tejun Heo
2012-11-30 22:55 ` Tejun Heo
2012-12-01 11:06 ` Zlatko Calusic
2012-12-01 14:38 ` Tejun Heo [this message]
2012-12-01 17:11 ` Zlatko Calusic
2012-12-01 19:13 ` Tejun Heo
2012-12-01 22:11 ` Zlatko Calusic
2012-11-30 23:11 ` Zlatko Calusic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121201143852.GA2685@htj.dyndns.org \
--to=tj@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=zlatko.calusic@iskon.hr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®