DragonFly submit List (threaded) for 2004-04
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: [patch] POSIX advisory mode lock panic fix by Dfly
:Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx> scribbled:
:> OK, here is the updated version. I moved the actual handling into lockf.h,
:> only the rlimit check is left in resource.c and the call to lf_count_adjust.
:>
:> Matt, what do you think?
:>
:> Joerg
:
:This looks like what I had finished last night and is actually almost
:totally identical except for a couple of variable names ^_^. Nice work.
:
:--
:Kind regards,
:
:Devon H. O'Dell
Well, I would say that we are almost there.
I'm a bit confused about lf_count_adjust() ... why is it changing
the newowner pointer? Maybe you meant newowner->ui_posixlocks +=
instead of newowner += ?
lf_count_increment() is still entanged with the resource check.
lf_count_increment() should be integrated with or called from
the allocation code, and the resource check should be done
separately. lf_count_decrement() should be integrated with the
structure freeing code. When you have the increment/decrement
disconnected the way it is in the patch, chances are very high that
bugs will creep in.
-Matt
Matthew Dillon
<dillon@xxxxxxxxxxxxx>
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]