From: keith.busch@intel.com (Keith Busch)
Subject: [PATCH 6/6] nvme: Avoid that deleting a controller triggers a circular locking complaint
Date: Tue, 19 Feb 2019 09:55:02 -0700 [thread overview]
Message-ID: <20190219165501.GC16341@localhost.localdomain> (raw)
In-Reply-To: <20190219151655.GB4121@lst.de>
On Tue, Feb 19, 2019@04:16:55PM +0100, Christoph Hellwig wrote:
> Keith, Sagi,
>
> can you look over this as you two have been most involved with the state
> machine lately?
This looks correct. I had to double check 'ret' was initilized to 0
outside what the diff is showing, so maybe it'd be more obvious if
nvme_do_delete_ctrl() was in an 'else' condition. Beyond that nit,
the series looks good to me.
Reviewed-by: Keith Busch <keith.busch at intel.com>
> On Thu, Feb 14, 2019@02:50:57PM -0800, Bart Van Assche wrote:
> > @@ -191,9 +191,10 @@ static int nvme_delete_ctrl_sync(struct nvme_ctrl *ctrl)
> > * can free the controller.
> > */
> > nvme_get_ctrl(ctrl);
> > - ret = nvme_delete_ctrl(ctrl);
> > + if (!nvme_change_ctrl_state(ctrl, NVME_CTRL_DELETING))
> > + ret = -EBUSY;
> > if (!ret)
> > - flush_work(&ctrl->delete_work);
> > + nvme_do_delete_ctrl(ctrl);
> > nvme_put_ctrl(ctrl);
> > return ret;
> > }
next prev parent reply other threads:[~2019-02-19 16:55 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-14 22:50 [PATCH 0/6] NVMe patches for kernel v5.1 Bart Van Assche
2019-02-14 22:50 ` [PATCH 1/6] nvmet: Fix indentation Bart Van Assche
2019-02-14 22:59 ` Chaitanya Kulkarni
2019-02-19 18:53 ` Sagi Grimberg
2019-02-14 22:50 ` [PATCH 2/6] nvme-fabrics: Document the poll function argument Bart Van Assche
2019-02-14 23:02 ` Chaitanya Kulkarni
2019-02-19 18:54 ` Sagi Grimberg
2019-02-14 22:50 ` [PATCH 3/6] nvme-pci: Check kstrtoint() return value in queue_count_set() Bart Van Assche
2019-02-14 23:04 ` Chaitanya Kulkarni
2019-02-19 18:54 ` Sagi Grimberg
2019-02-14 22:50 ` [PATCH 4/6] nvme: Unexport nvme_delete_ctrl_sync() Bart Van Assche
2019-02-14 23:05 ` Chaitanya Kulkarni
2019-02-19 18:54 ` Sagi Grimberg
2019-02-14 22:50 ` [PATCH 5/6] nvme: Introduce a helper function for controller deletion Bart Van Assche
2019-02-19 18:54 ` Sagi Grimberg
2019-02-14 22:50 ` [PATCH 6/6] nvme: Avoid that deleting a controller triggers a circular locking complaint Bart Van Assche
2019-02-19 15:16 ` Christoph Hellwig
2019-02-19 16:55 ` Keith Busch [this message]
2019-02-19 18:58 ` Sagi Grimberg
2019-02-20 14:20 ` Christoph Hellwig
2019-02-19 15:25 ` [PATCH 0/6] NVMe patches for kernel v5.1 Christoph Hellwig
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=20190219165501.GC16341@localhost.localdomain \
--to=keith.busch@intel.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.