Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751163AbdFALnk (ORCPT ); Thu, 1 Jun 2017 07:43:40 -0400 Received: from verein.lst.de ([213.95.11.211]:45896 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751076AbdFALnj (ORCPT ); Thu, 1 Jun 2017 07:43:39 -0400 Date: Thu, 1 Jun 2017 13:43:38 +0200 From: Christoph Hellwig To: Rakesh Pandit Cc: Sagi Grimberg , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Jens Axboe , Keith Busch , Christoph Hellwig , Andy Lutomirski Subject: Re: [PATCH V2] nvme: fix nvme_remove going to uninterruptible sleep for ever Message-ID: <20170601114338.GA24855@lst.de> References: <20170530071610.GA2679@hercules.tuxera.com> <4da7c939-1f54-80e5-48fc-06e58e14f018@grimberg.me> <20170530142346.GA39428@dhcp-216.srv.tuxera.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170530142346.GA39428@dhcp-216.srv.tuxera.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 760 Lines: 15 On Tue, May 30, 2017 at 05:23:46PM +0300, Rakesh Pandit wrote: > We can fix user-space triggered set_features higger up e.g. in > nvme_ioctl by putting same check. Introduction of a separate state > NVME_CTRL_SCHED_RESET (being discussed in another thread) has > additional advantage of making sure that only one thread is going > through resetting and eventually through removal (if required) and > solves lot of problems. I think we need the NVME_CTRL_SCHED_RESET state. In fact I'm pretty sure some time in the past I already had it in a local tree as a generalization of rdma and loop already use NVME_CTRL_RESETTING (they set it before queueing the reset work). But I don't fully understand how the NVME_CTRL_SCHED_RESET fix is related to this patch?