Re: Freezable workqueue blocks non-freezable workqueue during the system resume process

2016-03-19 Thread Tejun Heo
Hello, Jan, Alan. On Tue, Mar 15, 2016 at 10:25:43AM +0100, Jan Kara wrote: > > The kernel does suspend device drivers; that is, it invokes their > > suspend callbacks. But it doesn't "freeze" them in any sense. Once a > > driver has been suspended, it assumes it won't receive any I/O requests

Re: Freezable workqueue blocks non-freezable workqueue during the system resume process

2016-03-15 Thread Jan Kara
On Mon 14-03-16 10:37:22, Alan Stern wrote: > On Mon, 14 Mar 2016, Jan Kara wrote: > > > On Fri 11-03-16 12:56:10, Tejun Heo wrote: > > > Hello, Jan. > > > > > > On Thu, Mar 03, 2016 at 10:33:10AM +0100, Jan Kara wrote: > > > > > Ugh... that's nasty. I wonder whether the right thing to do is mak

Re: Freezable workqueue blocks non-freezable workqueue during the system resume process

2016-03-14 Thread Alan Stern
On Mon, 14 Mar 2016, Jan Kara wrote: > On Fri 11-03-16 12:56:10, Tejun Heo wrote: > > Hello, Jan. > > > > On Thu, Mar 03, 2016 at 10:33:10AM +0100, Jan Kara wrote: > > > > Ugh... that's nasty. I wonder whether the right thing to do is making > > > > writeback workers non-freezable. IOs are supp

Re: Freezable workqueue blocks non-freezable workqueue during the system resume process

2016-03-14 Thread Jan Kara
On Fri 11-03-16 12:56:10, Tejun Heo wrote: > Hello, Jan. > > On Thu, Mar 03, 2016 at 10:33:10AM +0100, Jan Kara wrote: > > > Ugh... that's nasty. I wonder whether the right thing to do is making > > > writeback workers non-freezable. IOs are supposed to be blocked from > > > lower layer anyway.

Re: Freezable workqueue blocks non-freezable workqueue during the system resume process

2016-03-11 Thread Tejun Heo
Hello, Jan. On Thu, Mar 03, 2016 at 10:33:10AM +0100, Jan Kara wrote: > > Ugh... that's nasty. I wonder whether the right thing to do is making > > writeback workers non-freezable. IOs are supposed to be blocked from > > lower layer anyway. Jan, what do you think? > > Well no, at least current

Re: Freezable workqueue blocks non-freezable workqueue during the system resume process

2016-03-03 Thread Jan Kara
Hello, On Wed 02-03-16 11:00:58, Tejun Heo wrote: > On Fri, Feb 26, 2016 at 02:19:20PM +0800, Peter Chen wrote: > > On Thu, Feb 25, 2016 at 05:01:12PM -0500, Tejun Heo wrote: > > > Hello, Peter. > > > > > > On Wed, Feb 24, 2016 at 03:24:30PM +0800, Peter Chen wrote: > > > > > You might want to co

Re: Freezable workqueue blocks non-freezable workqueue during the system resume process

2016-03-02 Thread Tejun Heo
Hello, (cc'ing Jan) On Fri, Feb 26, 2016 at 02:19:20PM +0800, Peter Chen wrote: > On Thu, Feb 25, 2016 at 05:01:12PM -0500, Tejun Heo wrote: > > Hello, Peter. > > > > On Wed, Feb 24, 2016 at 03:24:30PM +0800, Peter Chen wrote: > > > > You might want to complain to the block-layer people about th

Re: Freezable workqueue blocks non-freezable workqueue during the system resume process

2016-02-25 Thread Peter Chen
On Thu, Feb 25, 2016 at 05:01:12PM -0500, Tejun Heo wrote: > Hello, Peter. > > On Wed, Feb 24, 2016 at 03:24:30PM +0800, Peter Chen wrote: > > > You might want to complain to the block-layer people about this. I > > > don't know if anything can be done to fix it. > > > > > > Or maybe flush_work

Re: Freezable workqueue blocks non-freezable workqueue during the system resume process

2016-02-25 Thread Tejun Heo
Hello, Peter. On Wed, Feb 24, 2016 at 03:24:30PM +0800, Peter Chen wrote: > > You might want to complain to the block-layer people about this. I > > don't know if anything can be done to fix it. > > > > Or maybe flush_work and flush_delayed_work can be changed to avoid > > blocking if the work

Re: Freezable workqueue blocks non-freezable workqueue during the system resume process

2016-02-23 Thread Peter Chen
On Tue, Feb 23, 2016 at 10:34:09AM -0500, Alan Stern wrote: > On Tue, 23 Feb 2016, Peter Chen wrote: > > > Hi Tejun Heo and Florian Mickler, > > > > I have a question that during the system resume process, the freezable > > workqueue can be thawed if there is a non-freezable workqueue is > > bloc

Re: Freezable workqueue blocks non-freezable workqueue during the system resume process

2016-02-23 Thread Alan Stern
On Tue, 23 Feb 2016, Peter Chen wrote: > Hi Tejun Heo and Florian Mickler, > > I have a question that during the system resume process, the freezable > workqueue can be thawed if there is a non-freezable workqueue is > blocked (At uninterruptable state)? > > My case like below, I have a USB OTG

Re: Freezable workqueue blocks non-freezable workqueue during the system resume process

2016-02-23 Thread Peter Chen
On Tue, Feb 23, 2016 at 11:20:56AM +0800, Peter Chen wrote: > Hi Tejun Heo and Florian Mickler, > > I have a question that during the system resume process, the freezable > workqueue can be thawed if there is a non-freezable workqueue is > blocked (At uninterruptable state)? > > My case like belo

Freezable workqueue blocks non-freezable workqueue during the system resume process

2016-02-22 Thread Peter Chen
Hi Tejun Heo and Florian Mickler, I have a question that during the system resume process, the freezable workqueue can be thawed if there is a non-freezable workqueue is blocked (At uninterruptable state)? My case like below, I have a USB OTG (Micro-AB) cable is at USB Micro-B port, and there is