Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1433430

Re: [PATCH] PM / suspend: show workqueues busy name in suspend flow

From Roger Lu <roger.lu@mediatek.com>
Newsgroups linux.kernel
Subject Re: [PATCH] PM / suspend: show workqueues busy name in suspend flow
Date 2016-06-29 06:00 +0200
Message-ID <rPePo-7su-3@gated-at.bofh.it> (permalink)
References <rMSgi-5bN-23@gated-at.bofh.it> <rMSgi-5bN-21@gated-at.bofh.it> <rP4wG-18P-11@gated-at.bofh.it> <rP4wG-18P-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Dear Tejun,

On Tue, 2016-06-28 at 12:56 -0400, Tejun Heo wrote:
> Hello, Roger.
> 
> On Mon, Jun 27, 2016 at 05:44:05PM +0800, Roger Lu wrote:
> > show_workqueue_state() is a better choice to me. However, only freezable
> > workqueue is able to affect suspend flow. So, is there other mailing
> > list discussing about showing freezable workqueue state only?? Maybe we
> > can use that API in this case. Thanks very much.
> > 
> > freezable workqueue means workqueue is created with flag WQ_FREEZABLE.
> 
> It's for debugging anyway and workqueue dumps usually are pretty
> short.  I don't think it's fine to use the same function.  We can add
> flags in the printouts but I'm not even sure that'd be necessary.
> 
> Thanks.
> 

Please allow me to elaborate my previous concern about printing
freezable workqueue info only in this case.

The benefit of it is that debugger can quickly understand which
freezable workqueues block suspend flow and assign this issue to
corresponding owner instead of extracting freezable workqueue info from
show_workqueue_state() first and, then, assigning the issue.

Adding a flag to printout the info we need is great. Perhaps we can do
that. Thanks for the advice.

Sincerely,
Roger Lu.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH] PM / suspend: show workqueues busy name in suspend flow Tejun Heo <tj@kernel.org> - 2016-06-28 19:00 +0200
  Re: [PATCH] PM / suspend: show workqueues busy name in suspend flow Roger Lu <roger.lu@mediatek.com> - 2016-06-29 06:00 +0200
    Re: [PATCH] PM / suspend: show workqueues busy name in suspend flow Tejun Heo <tj@kernel.org> - 2016-06-29 15:30 +0200

csiph-web