Re: Patch for inode SLIST conversion

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <kernel@...>
Date: Tuesday, February 5, 2008 - 2:49 pm

Matthew Dillon wrote:
 >
 >

A patch is appended.

lwkt_token_is_stale(lwkt_tokref_t) detects if the token was acquired by
another thread while the thread was sleeping. I don't care about
tokrefs, instead the granularity is a thread, so that recursive calls to
acquire a token within the same thread DO NOT stale out a token.
Furthermore the code for UP and SMP is now basically the same, except
for spin-locks or preemption issues. That is, I keep a per-thread count
instead of the globalcount on UP and maintain thread ownership as well.
I noticed that _lwkt_trytokref and _lwkt_gettokref were basically using
the same code (it was copy & pasted), so I unified that as well.

Regards,

   Michael
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Patch for inode SLIST conversion, Matthew Dillon, (Thu Jan 24, 3:43 pm)
Re: Patch for inode SLIST conversion, Michael Neumann, (Tue Feb 5, 2:49 pm)
Re: Patch for inode SLIST conversion, Michael Neumann, (Tue Feb 5, 9:31 am)
Re: Patch for inode SLIST conversion, Michael Neumann, (Tue Feb 5, 9:56 am)
Re: Patch for inode SLIST conversion, Michael Neumann, (Wed Jan 30, 7:28 am)