From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C602C433FE for ; Sat, 9 Apr 2022 05:07:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231524AbiDIFJ2 (ORCPT ); Sat, 9 Apr 2022 01:09:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241714AbiDIFIN (ORCPT ); Sat, 9 Apr 2022 01:08:13 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F77E334112 for ; Fri, 8 Apr 2022 22:04:09 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 0714468AFE; Sat, 9 Apr 2022 07:04:06 +0200 (CEST) Date: Sat, 9 Apr 2022 07:04:05 +0200 From: Christoph Hellwig To: Bart Van Assche Cc: Christoph Hellwig , Bob Pearson , "Martin K. Petersen" , Jason Gunthorpe , "linux-rdma@vger.kernel.org" , Yi Zhang Subject: Re: blktest failures Message-ID: <20220409050405.GA17755@lst.de> References: <533dc3b0-e58a-0bc8-2f07-5dbfb3d1235e@gmail.com> <28b4c636-c5a7-451b-965b-6201ac5af460@gmail.com> <98f2a27d-7fa6-074f-a3e5-6b172c79ccd7@acm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <98f2a27d-7fa6-074f-a3e5-6b172c79ccd7@acm.org> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org On Fri, Apr 08, 2022 at 04:25:12PM -0700, Bart Van Assche wrote: > One of the functions in the above call stack is sd_remove(). sd_remove() > calls del_gendisk() just before calling sd_shutdown(). sd_shutdown() > submits the SYNCHRONIZE CACHE command. In del_gendisk() I found the > following comment: "Fail any new I/O". Do you agree that failing new I/O > before sd_shutdown() is called is wrong? Is there any other way to fix this > than moving the blk_queue_start_drain() etc. calls out of del_gendisk() and > into a new function? That SYNCHRONIZE CACHE is a passthrough command sent on the request_queue and should not be affected by stopping all file system I/O.