Re: [PATCH] freezer: configure user space process frozen along with kernel threads

2013-02-20 Thread Pavel Machek
On Wed 2013-02-20 13:36:19, Eric W. Biederman wrote: > Alan Stern writes: > > > On Wed, 20 Feb 2013, Eric W. Biederman wrote: > > > >> >> Why can't the fuse filesystem freeze when there are requests pending? > >> > > >> > It _can_ freeze (that is, the fuse daemon can). The problem is that > >> >

Re: [PATCH] freezer: configure user space process frozen along with kernel threads

2013-02-20 Thread Pavel Machek
On Wed 2013-02-20 05:51:49, Eric W. Biederman wrote: > Li Fei writes: > > > There is well known issue that freezing will fail in case that fuse > > daemon is frozen firstly with some requests not handled, as the fuse > > usage task is waiting for the response from fuse daemon and can't be > > fro

Re: [PATCH] freezer: configure user space process frozen along with kernel threads

2013-02-20 Thread Alan Stern
On Wed, 20 Feb 2013, Eric W. Biederman wrote: > > Oh, okay. But it's no different from any other filesystem in that > > respect. Processes generally can't be frozen while they are waiting > > for filesystem I/O to complete. In many cases they can't receive > > signals either (they are in an un

Re: [PATCH] freezer: configure user space process frozen along with kernel threads

2013-02-20 Thread Eric W. Biederman
Alan Stern writes: > On Wed, 20 Feb 2013, Eric W. Biederman wrote: > >> >> Why can't the fuse filesystem freeze when there are requests pending? >> > >> > It _can_ freeze (that is, the fuse daemon can). The problem is that >> > tasks _using_ the fuse filsystem can't if the daemon doesn't respond

Re: [PATCH] freezer: configure user space process frozen along with kernel threads

2013-02-20 Thread Alan Stern
On Wed, 20 Feb 2013, Eric W. Biederman wrote: > >> Why can't the fuse filesystem freeze when there are requests pending? > > > > It _can_ freeze (that is, the fuse daemon can). The problem is that > > tasks _using_ the fuse filsystem can't if the daemon doesn't respond. > > Which is what I mean

Re: [PATCH] freezer: configure user space process frozen along with kernel threads

2013-02-20 Thread Eric W. Biederman
Alan Stern writes: > On Wed, 20 Feb 2013, Eric W. Biederman wrote: > >> Why can't the fuse filesystem freeze when there are requests pending? > > It _can_ freeze (that is, the fuse daemon can). The problem is that > tasks _using_ the fuse filsystem can't if the daemon doesn't respond. Which is

Re: [PATCH] freezer: configure user space process frozen along with kernel threads

2013-02-20 Thread Alan Stern
On Wed, 20 Feb 2013, Eric W. Biederman wrote: > Why can't the fuse filesystem freeze when there are requests pending? It _can_ freeze (that is, the fuse daemon can). The problem is that tasks _using_ the fuse filsystem can't if the daemon doesn't respond. These tasks are stuck in uninterruptib

Re: [PATCH] freezer: configure user space process frozen along with kernel threads

2013-02-20 Thread Eric W. Biederman
Li Fei writes: > There is well known issue that freezing will fail in case that fuse > daemon is frozen firstly with some requests not handled, as the fuse > usage task is waiting for the response from fuse daemon and can't be > frozen. To solve the issue as above, make fuse daemon frozen after >

RE: [PATCH] freezer: configure user space process frozen along with kernel threads

2013-02-20 Thread Li, Fei
nux-foundation.org; v...@zeniv.linux.org.uk; > ebied...@xmission.com; rient...@google.com; linux-kernel@vger.kernel.org; > linux...@vger.kernel.org; Liu, Chuansheng; Wang, Biao > Subject: Re: [PATCH] freezer: configure user space process frozen along with > kernel threads > > On Wed, Feb 20,

Re: [PATCH] freezer: configure user space process frozen along with kernel threads

2013-02-20 Thread Cyrill Gorcunov
On Wed, Feb 20, 2013 at 10:15:25AM +0800, Li Fei wrote: > > +#ifdef CONFIG_FREEZER > + > +static ssize_t freeze_late_read(struct file *file, char __user *buf, > + size_t count, loff_t *ppos) > +{ > + struct task_struct *task = get_proc_task(file->f_path.den