[ovs-dev] [PATCH 2/2] lockfile: Remove lockfile_lock timeout argument

Leo Alterman lalterman at nicira.com
Thu Aug 9 20:16:27 UTC 2012


Thanks, Ben. Incorporated changes and resubmitted patch set since the order
changed.

On Wed, Aug 8, 2012 at 9:26 PM, Ben Pfaff <blp at nicira.com> wrote:

> On Wed, Aug 08, 2012 at 05:52:58PM -0700, Leo Alterman wrote:
> > lockfile_lock() accepts a timeout argument but, aside from unit tests
> > pertaining to timeout, its value is always 0. Since this feature relies
> on
> > a periodic SIGALRM signal, which is no longer a given after refactoring
> > timeval.c, the cleanest solution is to just remove it.
> >
> > Signed-off-by: Leo Alterman <lalterman at nicira.com>
>
> I think that this fixes a failure in the unit tests that the first patch
> causes.  If so, then that means that this patch should be the first in
> the series, not the second, so that there is no point at which the
> testsuite is broken.
>
> (One way to reorder the commits is to run "git rebase -i origin/master",
> then reorder the two "pick" lines in the editor that comes up and save
> and exit the editor.)
>
> The lockfile_lock() comment should mention that it won't block waiting
> for the lock.
>
> I believe that lockfile_try_lock()'s 'block' parameter may now be
> removed because it is always passed as false.
>
> Thanks,
>
> Ben.
>
> (I'll look at patch 1/2 now.)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-dev/attachments/20120809/47354541/attachment-0003.html>


More information about the dev mailing list