Mailinglist Archive: opensuse-kernel (109 mails)

< Previous Next >
Re: [opensuse-kernel] novfs: replace MUTEX by sema functions
  • From: Jan Engelhardt <jengelh@xxxxxxxxxx>
  • Date: Sun, 7 Mar 2010 14:10:25 +0100 (CET)
  • Message-id: <alpine.LSU.2.01.1003071408300.12235@xxxxxxxxxxxxxxx>
On Sunday 2010-03-07 13:59, Jean Delvare wrote:

Hi Jan,

On Saturday 06 March 2010 08:21:32 pm Jan Engelhardt wrote:
Avoid old MUTEX macros and use sema instead, which works
for both default and RT kernels.

Do you actually need the power of semaphores?

Dunno, I did not write novfs. I just made it compile again.

Why is novfs - besides coding style - not upstream anyway? And how does
it relate to ncpfs?

Given that they are all
initialized to 0 or 1, I have a doubt. Simple mutexes are more efficient. What
about using the DEFINE_MUTEX/mutex_lock()/mutex_unlock() API instead?
To unsubscribe, e-mail: opensuse-kernel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-kernel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups