Skip to content
Commit b7c44ed9 authored by Jens Axboe's avatar Jens Axboe
Browse files

block: manipulate bio->bi_flags through helpers



Some places use helpers now, others don't. We only have the 'is set'
helper, add helpers for setting and clearing flags too.

It was a bit of a mess of atomic vs non-atomic access. With
BIO_UPTODATE gone, we don't have any risk of concurrent access to the
flags. So relax the restriction and don't make any of them atomic. The
flags that do have serialization issues (reffed and chained), we
already handle those separately.

Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 4246a0b6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment