Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1407592
| From | Jens Axboe <axboe@kernel.dk> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] blk-mq: clear q->mq_ops if init fail |
| Date | 2016-05-26 17:00 +0200 |
| Message-ID | <rD4Vs-7H3-15@gated-at.bofh.it> (permalink) |
| References | <rCWXT-2Qp-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 05/26/2016 12:23 AM, Ming Lin wrote: > From: Ming Lin <ming.l@samsung.com> > > blk_mq_init_queue() calls blk_mq_init_allocated_queue(), but q->mq_ops > was not cleared when blk_mq_init_allocated_queue() fails. > Then blk_cleanup_queue() calls blk_mq_free_queue() which will crash because: > - q->all_q_node is not added to all_q_list yet > - q->tag_set is NULL > - hctx was not setup yet or already freed > > Fixed it by clearing q->mq_ops on error path. Thanks Ming, applied for this series. -- Jens Axboe
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] blk-mq: clear q->mq_ops if init fail Ming Lin <mlin@kernel.org> - 2016-05-26 08:30 +0200 Re: [PATCH] blk-mq: clear q->mq_ops if init fail Christoph Hellwig <hch@lst.de> - 2016-05-26 09:10 +0200 Re: [PATCH] blk-mq: clear q->mq_ops if init fail Jens Axboe <axboe@kernel.dk> - 2016-05-26 17:00 +0200
csiph-web