lkml.org 
[lkml]   [2002]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: Oops from local semaphore race condition
Date


Ron.Niles@falconstor.com said:
>> Then I realized it can possibly go corrupt, due to a race condition
>> which lets down() continue before up() is complete:

From: David Woodhouse [mailto:dwmw2@infradead.org]

>This is what completions were added for.

Thanks, struct completion is the best way; it's gonna be tough to maintain
backward compatibility though.

One comment; it looks like the implementation in sched.c should more
properly be using wq_write_lock_irqsave on the lock.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:26    [W:0.063 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site