]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: document the need to have STARTED and COMPLETED share a byte
authorJens Axboe <axboe@kernel.dk>
Wed, 4 Oct 2017 17:22:24 +0000 (11:22 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 4 Oct 2017 17:22:24 +0000 (11:22 -0600)
commit092e61ba754af8b369bfc2d6cd39b50f295f6574
treeb7a6a14246cf9e9c9967c7072d96a0010d117164
parent87bd106abe9e3759ae21f6f088caca762dd1aba5
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: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
block/blk.h