aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYufen Yu <yuyufen@huawei.com>2019-03-13 13:54:58 -0400
committerJens Axboe <axboe@kernel.dk>2019-03-13 14:05:39 -0400
commit01fc08ff1f2f3f17d5947f18e62ed93c391aa3ce (patch)
tree0495c03854ae7617e4ed498ee21dd37a5ca01a0a
parenta63b83700ba89c300f705167d06bf122f3666287 (diff)
nvme: update comment to make the code easier to read
After commit a686ed75c0fb ("nvme: introduce a helper function for controller deletion), nvme_delete_ctrl_sync no longer use flush_work. Update comment, accordingly. Signed-off-by: Yufen Yu <yuyufen@huawei.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--drivers/nvme/host/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index d57a84f45ed0..b92fab434066 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -179,8 +179,8 @@ static int nvme_delete_ctrl_sync(struct nvme_ctrl *ctrl)
179 int ret = 0; 179 int ret = 0;
180 180
181 /* 181 /*
182 * Keep a reference until the work is flushed since ->delete_ctrl 182 * Keep a reference until nvme_do_delete_ctrl() complete,
183 * can free the controller. 183 * since ->delete_ctrl can free the controller.
184 */ 184 */
185 nvme_get_ctrl(ctrl); 185 nvme_get_ctrl(ctrl);
186 if (!nvme_change_ctrl_state(ctrl, NVME_CTRL_DELETING)) 186 if (!nvme_change_ctrl_state(ctrl, NVME_CTRL_DELETING))