Thread (7 messages) 7 messages, 3 authors, 2014-09-18

Re: blk-mq crash under KVM in multiqueue block code (with virtio-blk and ext4)

From: Ming Lei <tom.leiming@gmail.com>
Date: 2014-09-17 15:30:55
Also in: kvm, lkml

Possibly related (same subject, not in this thread)

On Wed, Sep 17, 2014 at 10:22 PM, Jens Axboe [off-list ref] wrote:
Another way would be to ensure that the timeout handler doesn't touch hw_ctx
or tag_sets that aren't fully initialized yet. But I think this is
safer/cleaner.
That may not be easy or enough to check if hw_ctx/tag_sets are
fully initialized if you mean all requests have been used one time.

On Wed, Sep 17, 2014 at 10:11 PM, David Hildenbrand
I was playing with a simple patch that just sets cmd_flags and action_flags to
What is action_flags?
0. That should already be sufficient to hinder blk_mq_tag_to_rq and the calling
method to do the wrong thing.
Yes, clearing rq->cmd_flags should be enough.

And looks better to move rq initialization to __blk_mq_free_request()
too, otherwise timeout still may see old cmd_flags and rq->q before
rq's new initialization.


Thanks,
-- 
Ming Lei
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help