Project

General

Profile

Actions

Feature #3866

open

149: double use of init_completion()

Added by Vladimir Gratinskiy almost 12 years ago. Updated over 11 years ago.

Status:
New
Priority:
Normal
Start date:
01/18/2013
Due date:
% Done:

0%

Estimated time:
Published in build:

Description

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.

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;h=41682e03d4f

In some cases (for example, if the critical section is used) double use of init_complition() don't lead to error.

Actions

Also available in: Atom PDF