Project

General

Profile

Feature #3865

Updated by Vladimir Gratinskiy almost 12 years ago

Before each use of completion the corresponding initialization has to be carried out. 
 _Either static:_ 
  @DECLARE_COMPLETION()@ 
 _or dynamic:_ 
  @init_completion()@ 

 Repeating use of init_completion() would be able to create possible race condition. 
 To avoid it we can reinit completion using INIT_COMPLETION(). Commit 41682e03d4f on torvalds fix this problem. 
 <pre> 
 http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;h=41682e03d4f 
 </pre>

Back