Re: [PATCH 4/6] Replace inode flush semaphore with a completion

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Daniel Walker
Date: Wednesday, August 13, 2008 - 6:34 pm

On Thu, 2008-08-14 at 10:19 +1000, Dave Chinner wrote:

I'm not suggesting anything concrete at this point, I'm just thinking
about it.

If you assume that most of the time your doing async flushing, you
wouldn't often need to do blocking on the completion .. Another way of
doing it would be drop the completion most of the time, and just use the
flag. Then in the rare case that a function needs to block make a stack
local completion, pass it as a pointer inside the xfs_inode_t, if it's
non-null when the write is finished you would complete().

Daniel

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

Messages in current thread:
[PATCH 1/6] Clean up stale references to semaphores, Dave Chinner, (Fri Jun 27, 1:44 am)
[PATCH 6/6] Remove the sema_t from XFS., Dave Chinner, (Fri Jun 27, 1:44 am)
Re: [PATCH 4/6] Replace inode flush semaphore with a compl ..., Daniel Walker, (Wed Aug 13, 6:34 pm)