Skip to content
Commit 1af95de6 authored by Wang YanQing's avatar Wang YanQing Committed by Al Viro
Browse files

fs:super:get_anon_bdev: fix race condition could cause dev exceed its upper limitation



Execution of get_anon_bdev concurrently and preemptive kernel all
could bring race condition, it isn't enough to check dev against
its upper limitation with equality operator only.

This patch fix it.

Signed-off-by: default avatarWang YanQing <udknight@gmail.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 2adc376c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment