Project

General

Profile

Actions

Feature #3866

open

149: double use of init_completion()

Added by Vladimir Gratinskiy over 11 years ago. Updated about 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 #1

Updated by Evgeny Novikov about 11 years ago

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

Updated by Alexey Khoroshilov about 11 years ago

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

Also available in: Atom PDF