Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4116521pxv; Mon, 19 Jul 2021 17:28:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMedL+MUBnOEqBJskbsceaQSESh1MNJc0izkmL72wJE1vqG4sm/owB+bhAOhCWdLZlBIUd X-Received: by 2002:a17:906:f24b:: with SMTP id gy11mr29847369ejb.71.1626740922829; Mon, 19 Jul 2021 17:28:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626740922; cv=none; d=google.com; s=arc-20160816; b=0khzunIM0pZx40a22/GiVdItF2ish+4toXhuF8uzzXSP6PMQUUQv9hG+QiSJO2jcDb t1mrzMPViviCyrHEtukkRHfX9aTnA7Qn4hwHEkXhzfPThuupYuHaNUiUgh2IFA/RLxd4 pn85XW9pgLyLXmhU801uotlJif0Fd1oUziHnOcsOiSCeVlmgnq/eBLR+RZ9OEm3geKZp QGkVVElM/WAFx/ZWY+87pZGWCe+jIWdrHdw036P25wcfduj/5yTAGHxwJAsjDVUjd+5P ie8AJDCeYFI+zulMaUkTD2aSSJf0ZI/W6nQNi0zBcAqR+ZNj+0Shlq62DEQ/TryrLK8v ZQ3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=6pg2i/azcWb8fV5GRB9TXpG0kxE6pMvcP1mwssbbB1E=; b=cD0sBc451tM8iSs3Tz0JxFgVQI9MIq+i4sd4x25UQlpl8uS5zlEghkYgVz5XKeRT6H GtviXz8R1FGP6CdqOyCtlCFgWCGJIUM27fR7Lk1f3ISnxL3F8ioWl8saBkLqjC6P5eki 0U23wk9ZHqSsq7K9M1fRWYhEBHfyEQ7w+M8FbEQaMl+4ZZKIDWKXTHfuBeSIWx6tMr8S RS9v03MtplXAC6Di13nUl78hphJaCF6wIe+BvN6FcZqKm0OVuEUv6v1FpYdZb7hkFAdT cvy5GgA9Qjv9b+gfjvdzwWRzwYn6upVBsjoN1CFBl46tkPTcRmbNR5NinUs72tCsUumQ uJcw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dc28si21301590edb.444.2021.07.19.17.28.19; Mon, 19 Jul 2021 17:28:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238269AbhGSXnP (ORCPT + 99 others); Mon, 19 Jul 2021 19:43:15 -0400 Received: from mail-pj1-f41.google.com ([209.85.216.41]:55101 "EHLO mail-pj1-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354527AbhGSWUn (ORCPT ); Mon, 19 Jul 2021 18:20:43 -0400 Received: by mail-pj1-f41.google.com with SMTP id g24so12594359pji.4; Mon, 19 Jul 2021 16:00:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=6pg2i/azcWb8fV5GRB9TXpG0kxE6pMvcP1mwssbbB1E=; b=dY5sj4KZ1RwP34q0oi+lldDoAFu1NGM1ESIwo5khbK73EBQ6Z+OaWY+WWrge8So9jT EWt997TeopT/oNYmW8QxUCZBfUINngG8LQylnk6tAEGTQKRf8QbJT7jxLkqWuW46c+Pa tVR6yFAZXqoMQfj3maaeGvmTn6dGlAw9rXNwRujnw3WrUxOW7uBZNPLNgmcbuwJp9slO CkJhzi/NyPKSrNdmDDUhaKSH2EAF72bNG2XCRTuAEuZj8bqZYE23AFCT/IPSyQ25FCAq JFnAitp71n7QLEPrXasQ1osnQQlj6ylxP56d3H91GJFVIU4wDHAI8TMNsC/Nv7pvs4hq EDsw== X-Gm-Message-State: AOAM530SPf8Q/qvGc9d3EZ2B/QsOprIy0wggOOyXXBXMPlWPD/5sDiqm aoVMotxrwEe57xAjOzVnDAc= X-Received: by 2002:a17:902:d4d2:b029:12b:72cf:9178 with SMTP id o18-20020a170902d4d2b029012b72cf9178mr12783201plg.53.1626735659423; Mon, 19 Jul 2021 16:00:59 -0700 (PDT) Received: from garbanzo ([191.96.121.239]) by smtp.gmail.com with ESMTPSA id o184sm23823355pga.18.2021.07.19.16.00.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jul 2021 16:00:58 -0700 (PDT) Date: Mon, 19 Jul 2021 16:00:56 -0700 From: Luis Chamberlain To: Christoph Hellwig Cc: axboe@kernel.dk, hare@suse.de, bvanassche@acm.org, ming.lei@redhat.com, jack@suse.cz, osandov@fb.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 6/6] block: skip queue if NULL on blk_cleanup_queue() Message-ID: <20210719230056.wekatjwyuzt6zzok@garbanzo> References: <20210715045531.420201-1-mcgrof@kernel.org> <20210715045531.420201-7-mcgrof@kernel.org> <20210715190726.xlukndxddvph4fx6@garbanzo> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 19, 2021 at 10:50:13AM +0100, Christoph Hellwig wrote: > On Thu, Jul 15, 2021 at 12:07:26PM -0700, Luis Chamberlain wrote: > > > For all drivers using blk_alloc_disk/blk_mq_alloc_disk there should > > > always be a queue. The others ones aren't ready to handle errors > > > from add_disk yet in any way I think (and I plan to fix this up > > > ASAP). > > > > Have an example in mind? > > The only ones left are nvme, dasd and scsi. NVMe is trivial (attached), > dasd needs a little more work, I need to send up a WIP to the > maintainers. scsi is the real problem and will require a fair amount > of work. Alright, I'll wait until these changes are merged before sending those driver's conversions. Without this patch though, there's no way to test the error injection in case the driver was buggy and removed the queue by mistake. Recall my first patch moved that check to the beginning too. So we either skip that error injection test ... or not sure what else to do. Luis