On 30.08.21 г. 20:29, Bart Van Assche wrote: <snip> > Is the above patch complete? I think even with the above patch applied > there are still two functions in the block layer that use WRITE_ONCE() to > modify rq->state directly: > > $ git grep -nH 'WRITE_ONCE(rq->state,' > block/blk-mq.c:532: WRITE_ONCE(rq->state, MQ_RQ_IDLE); > block/blk-mq.c:648: WRITE_ONCE(rq->state, MQ_RQ_COMPLETE); > block/blk-mq.c:728: WRITE_ONCE(rq->state, MQ_RQ_IN_FLIGHT); > block/blk-mq.c:747: WRITE_ONCE(rq->state, MQ_RQ_IDLE); > block/blk-mq.c:2416: WRITE_ONCE(rq->state, MQ_RQ_IDLE); > include/linux/blk-mq.h:521: WRITE_ONCE(rq->state, MQ_RQ_COMPLETE); On just-updated master I get: $ git grep 'WRITE_ONCE(rq->state,' block/blk-mq.c: WRITE_ONCE(rq->state, MQ_RQ_IDLE); block/blk-mq.c: WRITE_ONCE(rq->state, MQ_RQ_IN_FLIGHT); block/blk-mq.c: WRITE_ONCE(rq->state, MQ_RQ_IDLE); block/blk-mq.c: WRITE_ONCE(rq->state, MQ_RQ_IDLE); include/linux/blk-mq.h: WRITE_ONCE(rq->state, MQ_RQ_COMPLETE); > > Thanks, > > Bart. >