From: hch@lst.de (Christoph Hellwig)
Subject: [PATCH] nvme-rdma: stop keep_alive before nvme_uninit_ctrl
Date: Wed, 5 Jul 2017 19:41:08 +0200 [thread overview]
Message-ID: <20170705174108.GE5417@lst.de> (raw)
In-Reply-To: <ccbe95fe-0711-52a6-4fec-22c2c05bc3ef@grimberg.me>
This idea looks fine - please send it out in a separate thread.
A few minor comments below:
> -void nvme_uninit_ctrl(struct nvme_ctrl *ctrl)
> +void __nvme_stop_ctrl(struct nvme_ctrl *ctrl)
> {
> + nvme_stop_keep_alive(ctrl);
> flush_work(&ctrl->async_event_work);
> flush_work(&ctrl->scan_work);
> +}
> +EXPORT_SYMBOL_GPL(__nvme_stop_ctrl);
I don't really like the __nvme_stop_ctrl name for something that
is called all the time. I think this should be nvme_stop_ctrl.
> +
> +void nvme_stop_ctrl(struct nvme_ctrl *ctrl)
> +{
> + __nvme_stop_ctrl(ctrl);
> nvme_remove_namespaces(ctrl);
> +}
> +EXPORT_SYMBOL_GPL(nvme_stop_ctrl);
And then this becomes nvme_remove_ctrl?
> + nvme_start_ctrl(&ctrl->ctrl);
> + if (ctrl->ctrl.queue_count > 1)
> nvme_start_queues(&ctrl->ctrl);
Maybe add a nvme_restart_ctrl for this always duplicated sequence?
next prev parent reply other threads:[~2017-07-05 17:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-29 14:33 [PATCH] nvme-rdma: stop keep_alive before nvme_uninit_ctrl David Milburn
2017-06-29 14:45 ` Johannes Thumshirn
2017-06-29 15:44 ` David Milburn
2017-06-29 16:24 ` James Smart
2017-07-02 8:08 ` Sagi Grimberg
2017-07-04 9:57 ` Sagi Grimberg
2017-07-05 17:41 ` Christoph Hellwig [this message]
2017-07-05 19:04 ` Sagi Grimberg
2017-07-05 19:08 ` Christoph Hellwig
2017-07-05 19:18 ` Sagi Grimberg
2017-07-07 13:27 ` David Milburn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170705174108.GE5417@lst.de \
--to=hch@lst.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox