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 X-Spam-Level: X-Spam-Status: No, score=-2.4 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21210C34031 for ; Wed, 19 Feb 2020 02:55:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E19CF24656 for ; Wed, 19 Feb 2020 02:55:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Y8nXTguj" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728196AbgBSCzR (ORCPT ); Tue, 18 Feb 2020 21:55:17 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:54400 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728175AbgBSCzR (ORCPT ); Tue, 18 Feb 2020 21:55:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1582080916; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3ssQCDVM74SPVby1fTm4z6JcG59jAK5ps2tKRPOXbU4=; b=Y8nXTgujCUwzyohBVI/Ug8bU+8Lb6dYgsmcnqRnW0oKsouv3V25FS3YI4adpjEHBWchqAa ftS7JhjfWUOalJpeHIJZ4jTeMmSxzwzpdYU60GdRuR6aEYRVY401yetTDn71Cz3/SuZmnn xweyU0LPK14ft2Ca6FzdJy7/WOI+bTs= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-191-_wNmUkm6NrOlf5L7e8yLSw-1; Tue, 18 Feb 2020 21:55:11 -0500 X-MC-Unique: _wNmUkm6NrOlf5L7e8yLSw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EB950107ACC5; Wed, 19 Feb 2020 02:55:09 +0000 (UTC) Received: from ming.t460p (ovpn-8-21.pek2.redhat.com [10.72.8.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E8A085C13B; Wed, 19 Feb 2020 02:55:01 +0000 (UTC) Date: Wed, 19 Feb 2020 10:54:56 +0800 From: Ming Lei To: Jesse Barnes Cc: Salman Qazi , Ming Lei , Bart Van Assche , Jens Axboe , Christoph Hellwig , Linux Kernel Mailing List , linux-block , Gwendal Grignou Subject: Re: BLKSECDISCARD ioctl and hung tasks Message-ID: <20200219025456.GD31488@ming.t460p> References: <20200213082643.GB9144@ming.t460p> <20200215034652.GA19867@ming.t460p> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Tue, Feb 18, 2020 at 08:11:53AM -0800, Jesse Barnes wrote: > On Fri, Feb 14, 2020 at 7:47 PM Ming Lei wrote: > > What are the 'other operations'? Are they block IOs? > > > > If yes, that is why I suggest to fix submit_bio_wait(), which should cover > > most of sync bio submission. > > > > Anyway, the fix is simple & generic enough, I'd plan to post a formal > > patch if no one figures out better doable approaches. > > Yeah I think any block I/O operation that occurs after the > BLKSECDISCARD is submitted will also potentially be affected by the > hung task timeouts, and I think your patch will address that. My only > concern with it is that it might hide some other I/O "hangs" that are > due to device misbehavior instead. Yes driver and device timeouts > should generally catch those, but with this in place we might miss a > few bugs. > > Given the nature of these types of storage devices though, I think > that's a minor issue and not worth blocking the patch on, given that > it should prevent a lot of false positive hang reports as Salman > demonstrated. Hello Jesse and Salman, One more question about this issue, do you enable BLK_WBT on your test kernel? Thanks, Ming