Skip to content
Snippets Groups Projects
Commit 5d12f905 authored by Jens Axboe's avatar Jens Axboe
Browse files

blk-mq: fix wrong usage of hctx->state vs hctx->flags


BLK_MQ_F_* flags are for hctx->flags, and are non-atomic and
set at registration time. BLK_MQ_S_* flags are dynamic and
atomic, and are accessed through hctx->state.

Some of the BLK_MQ_S_STOPPED uses were wrong. Additionally,
the header file should not use a bit shift for the _S_ flags,
as they are done through the set/test_bit functions.

Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 95363efd
No related branches found
No related tags found
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