Project

General

Profile

Feature #3866

149: double use of init_completion()

Added by Vladimir Gratinskiy almost 7 years ago. Updated over 6 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.

History

#1

Updated by Evgeny Novikov over 6 years ago

  • Subject changed from 149: double use of init_complition(). to 149: double use of init_completion().
#2

Updated by Alexey Khoroshilov over 6 years ago

  • Subject changed from 149: double use of init_completion(). to 149: double use of init_completion()

Also available in: Atom PDF