From mboxrd@z Thu Jan 1 00:00:00 1970 From: sagi@grimberg.me (Sagi Grimberg) Date: Wed, 20 Apr 2016 20:25:53 +0300 Subject: [PATCH 2/5] nvme: introduce a controller state machine In-Reply-To: <20160419183700.GA1211@lst.de> References: <1460982893-11315-1-git-send-email-hch@lst.de> <1460982893-11315-3-git-send-email-hch@lst.de> <5715294A.3020309@grimberg.me> <20160418201710.GA4921@lst.de> <571543EA.6080700@grimberg.me> <20160419182545.GA989@lst.de> <57167A68.5050206@grimberg.me> <20160419183700.GA1211@lst.de> Message-ID: <5717BBA1.4020404@grimberg.me> >>> Let's allocate states on an as needed basis and avoid that new >>> state for now. >> >> Didn't mean a new state, just a transition to NVME_CTRL_DELETING >> if nvme_reset_work fails... > > Oh, we can't actually do that - for PCIe deleting is only set > for calls from the PCI ->remove callback, which we'll invoke a > little later through the driver model from the workqueue we just > kicked off. Fair enough, Reviewed-by: Sagi Grimberg