Re: [ANNOUNCE] mdb-2.6.27-rc2-ia32-08-07-08.patch

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Stefan Richter
Date: Saturday, August 9, 2008 - 1:04 am

Jeremy Fitzhardinge wrote:
[...]

Right.  This implemention also looks free of race conditions, provided that

   - rspin_lock, rspin_try_lock, and rspin_unlock are only called in
     contexts with disabled preemption and disabled local interrupts,

   - rspin_unlock() rewrites rlock->processor to "no CPU" before
     it drops the lock.  (The implementation in
     mdb-2.6.27-rc2-ia32-08-07-08.patch does so.)

BTW, the rspin_try_lock() in that patch wrong:  It always returns 0 
instead of having three branches of execution which return 0/1/-1.
-- 
Stefan Richter
-=====-==--- =--- -=--=
http://arcgraph.de/sr/
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[ANNOUNCE] mdb-2.6.27-rc2-ia32-08-07-08.patch, jmerkey, (Thu Aug 7, 7:29 am)
Re: [ANNOUNCE] mdb-2.6.27-rc2-ia32-08-07-08.patch, Stefan Richter, (Thu Aug 7, 8:49 am)
Re: [ANNOUNCE] mdb-2.6.27-rc2-ia32-08-07-08.patch, Stefan Richter, (Thu Aug 7, 8:59 am)
Re: [ANNOUNCE] mdb-2.6.27-rc2-ia32-08-07-08.patch, Stefan Richter, (Thu Aug 7, 9:46 am)
Re: [ANNOUNCE] mdb-2.6.27-rc2-ia32-08-07-08.patch, Stefan Richter, (Thu Aug 7, 10:19 am)
Re: [ANNOUNCE] mdb-2.6.27-rc2-ia32-08-07-08.patch, Stefan Richter, (Thu Aug 7, 10:33 am)
Re: [ANNOUNCE] mdb-2.6.27-rc2-ia32-08-07-08.patch, Jeremy Fitzhardinge, (Fri Aug 8, 10:07 pm)
Re: [ANNOUNCE] mdb-2.6.27-rc2-ia32-08-07-08.patch, Stefan Richter, (Sat Aug 9, 1:04 am)