Re: Patch for inode SLIST conversion

From:

Michael Neumann <mneumann@xxxxxxxx>

Date:

Sun, 20 Jan 2008 12:47:21 +0100

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.