lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20080814023054.GH6119@disturbed>
Date:	Thu, 14 Aug 2008 12:30:54 +1000
From:	Dave Chinner <david@...morbit.com>
To:	Daniel Walker <dwalker@...sta.com>
Cc:	xfs@....sgi.com, linux-kernel@...r.kernel.org, matthew@....cx
Subject: Re: [PATCH 4/6] Replace inode flush semaphore with a completion

On Wed, Aug 13, 2008 at 06:34:49PM -0700, Daniel Walker wrote:
> On Thu, 2008-08-14 at 10:19 +1000, Dave Chinner wrote:
> > *However*, given that we already have this exact state in the
> > completion itself, I see little reason for adding the additional
> > locking overhead and the complexity of race conditions of keeping
> > this state coherent with the completion. Modifying the completion
> > API slightly to export this state is the simplest, easiest solution
> > to the problem....
> > 
> 
> 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.

I don't think that will work, either - the internal completion
counter must stay in sync so there must be a wait_for_completion()
call for every complete() call. If we make the wait_for_completion()
conditional, then we have to do the same thing for the complete()
call, and that introduces complexity and potential races because the
external flag and the completion cannot be updated atomically....

Cheers,

Dave.
-- 
Dave Chinner
david@...morbit.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ