[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6cc12ce7-07ca-35ac-0bae-c6d875854504@grimberg.me>
Date: Sun, 11 Feb 2018 13:16:02 +0200
From: Sagi Grimberg <sagi@...mberg.me>
To: Jianchao Wang <jianchao.w.wang@...cle.com>, keith.busch@...el.com,
axboe@...com, hch@....de
Cc: linux-nvme@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/9] nvme: fix the deadlock in nvme_update_formats
> mutex_lock(&ctrl->namespaces_mutex);
> list_for_each_entry(ns, &ctrl->namespaces, list) {
> - if (ns->disk && nvme_revalidate_disk(ns->disk))
> - nvme_ns_remove(ns);
> + if (ns->disk && nvme_revalidate_disk(ns->disk)) {
> + list_del_init(&ns->list);
> + list_add_tail(&ns->list, &rm_list);
list_move_tail?
Powered by blists - more mailing lists