Skip to content
Commit 2b74e12e authored by NeilBrown's avatar NeilBrown
Browse files

md: remove handling of flush_pending in md_submit_flush_data



None of the functions called between setting flush_pending to 1, and
atomic_dec_and_test can change flush_pending, or will anything
running in any other thread (as ->flush_bio is not NULL).  So the
atomic_dec_and_test will always succeed.
So remove the atomic_sec and the atomic_dec_and_test.

Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent be20e6c6
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