Re: [PATCH 3/3] Add timeout feature

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Thursday, August 21, 2008 - 1:20 pm

On Mon, 18 Aug 2008 21:28:56 +0900
Takashi Sato <t-sato@yk.jp.nec.com> wrote:


I don't think the changelogs actually explained why this feature is
being added?

Which userspace tools are expected to send these ioctls?  Something in
util-linux?  dm-utils?  Are patches to those packages planned?


This duplicates quite a bit of code from ioctl_freeze().  Can this be
cleaned up?



I can't see why this was exported.


I don't particularly like the names of these new global symbols.  The
kernel already has a "freezer" thing, part of power-management. 
Introducing another one is a bit confusing.

otoh, freezer seems to have consistently used "freezer", so the 'r'
arguable saves us.

Still, I'd have thought that "fsfreeze" would have been a clearer, more
specific identifier for the whole project.


So if the calling task is keventd via run_workqueue() then
delayed_work_pending() should return false due to run_workqueue()
ordering, so we avoid the deadlock.

Seems a bit racy if some other process starts the delayed-work while
this function is running but I guess the new semaphore prevents that.

Perhaps cancel_delayed_work_sync() shouldn't hang up if called from the
work handler?


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 3/3] Add timeout feature, Takashi Sato, (Mon Aug 18, 5:28 am)
Re: [PATCH 3/3] Add timeout feature, Andrew Morton, (Thu Aug 21, 1:20 pm)
Re: [PATCH 3/3] Add timeout feature, Christoph Hellwig, (Fri Aug 22, 11:16 am)
Re: [PATCH 3/3] Add timeout feature, Oleg Nesterov, (Sun Aug 24, 10:03 am)
Re: [PATCH 3/3] Add timeout feature, Takashi Sato, (Fri Aug 29, 2:39 am)