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

blk-mq: document the need to have STARTED and COMPLETED share a byte



For memory ordering guarantees on stores, we need to ensure that
these two bits share the same byte of storage in the unsigned
long. Add a comment as to why, and a BUILD_BUG_ON() to ensure that
we don't violate this requirement.

Suggested-by: default avatarBoqun Feng <boqun.feng@gmail.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent a7af0af3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment