Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1314251
| From | Sagi Grimberg <sagig@dev.mellanox.co.il> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v3] NVMe: init nvme queue before enabling irq |
| Date | 2016-01-21 16:00 +0100 |
| Message-ID | <qToSn-6CC-37@gated-at.bofh.it> (permalink) |
| References | <qTlUt-4G5-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Wenbo, > From: Wenbo Wang <wenbo.wang@memblaze.com> > > [v3] Do request irq in nvme_init_queue() to handle request irq failures > > There is one problem with the original patch. Since init queue happens > before request irq, online_queue might be left increased if request irq > fails. This version merges request irq into nvme_init_queue() because: > 1. It solves the online_queue counting issue if request irq fails. > 2. nvme_init_queue() is always followed by request irq, this change > simplifies code. > > This version also solves another possible race condition by moving > adminq free irq before iounmap. > > [v2] Remove duplicate init code in nvme_alloc_queue() > > During reset process, the nvme_dev->bar (ioremapped) may change, > so nvmeq->q_db shall be also updated by nvme_init_queue(). > > [v1] > > Currently nvmeq irq is enabled before queue init, so a spurious > interrupt triggered nvme_process_cq may access nvmeq->q_db just > before it is updated, this could cause kernel panic. So the patch changes should not appear in the change-log itself, its meant for the reviewers. The change log should document the fix. > > Signed-off-by: Wenbo Wang <wenbo.wang@memblaze.com> > Reviewed-by: Wenwei Tao <wenwei.tao@memblaze.com> > CC: stable@vger.kernel.org > --- Here (under the '---' separator) the patch vX changes should be documented in the form: Changes from v1: - A2 - B2 - C2 Changes from v0: - A1 - B1 - C1 This way git-am won't include it in the commit log message. Other then that the patch itself looks fine, Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v3] NVMe: init nvme queue before enabling irq Wenbo Wang <mail_weber_wang@163.com> - 2016-01-21 12:50 +0100 Re: [PATCH v3] NVMe: init nvme queue before enabling irq Sagi Grimberg <sagig@dev.mellanox.co.il> - 2016-01-21 16:00 +0100 Re: [PATCH v3] NVMe: init nvme queue before enabling irq Johannes Thumshirn <jthumshirn@suse.de> - 2016-01-21 17:40 +0100
csiph-web