1. 18 10月, 2021 19 次提交
  2. 16 10月, 2021 1 次提交
  3. 08 9月, 2021 1 次提交
  4. 24 8月, 2021 4 次提交
  5. 18 8月, 2021 1 次提交
    • M
      blk-mq: fix is_flush_rq · a9ed27a7
      Ming Lei 提交于
      is_flush_rq() is called from bt_iter()/bt_tags_iter(), and runs the
      following check:
      
      	hctx->fq->flush_rq == req
      
      but the passed hctx from bt_iter()/bt_tags_iter() may be NULL because:
      
      1) memory re-order in blk_mq_rq_ctx_init():
      
      	rq->mq_hctx = data->hctx;
      	...
      	refcount_set(&rq->ref, 1);
      
      OR
      
      2) tag re-use and ->rqs[] isn't updated with new request.
      
      Fix the issue by re-writing is_flush_rq() as:
      
      	return rq->end_io == flush_end_io;
      
      which turns out simpler to follow and immune to data race since we have
      ordered WRITE rq->end_io and refcount_set(&rq->ref, 1).
      
      Fixes: 2e315dc0 ("blk-mq: grab rq->refcount before calling ->fn in blk_mq_tagset_busy_iter")
      Cc: "Blank-Burian, Markus, Dr." <blankburian@uni-muenster.de>
      Cc: Yufen Yu <yuyufen@huawei.com>
      Signed-off-by: NMing Lei <ming.lei@redhat.com>
      Link: https://lore.kernel.org/r/20210818010925.607383-1-ming.lei@redhat.comSigned-off-by: NJens Axboe <axboe@kernel.dk>
      a9ed27a7
  6. 17 8月, 2021 1 次提交
  7. 13 8月, 2021 1 次提交
  8. 11 8月, 2021 1 次提交
  9. 10 8月, 2021 1 次提交
  10. 31 7月, 2021 1 次提交
  11. 01 7月, 2021 1 次提交
  12. 25 6月, 2021 1 次提交
  13. 18 6月, 2021 3 次提交
  14. 12 6月, 2021 4 次提交