DragonFly kernel List (threaded) for 2008-01
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: Patch for inode SLIST conversion
Simon 'corecode' Schubert wrote:
Michael Neumann wrote:
lwkt_token_stale(&lock, &token) would then simply check
for ilock->current_generation == token->generation, and
lwkt_gettoken() would increase the generation. Alternatively
a special lwkt_token_inc() could be used to increase the generation.
Not only gettoken, but also the lwkt code that re-obtains tokens. Doing
a manual _inc() defeats the idea.
Don't know if the overhead is justified. Probably only if it's used
that often.
Which overhead? Incrementing an integer?
Space overhead. Don't know if that matters at all.
Regards,
Michael
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]