Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp109396ybv; Tue, 18 Feb 2020 18:57:00 -0800 (PST) X-Google-Smtp-Source: APXvYqyfxim9qJvLAZIvLxz5c4j81J6fcwjhVs0hQkc4x4bocLAzCYCuGBQzxXgjTW8SD/FcAKca X-Received: by 2002:a05:6830:114c:: with SMTP id x12mr18266167otq.324.1582081019868; Tue, 18 Feb 2020 18:56:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582081019; cv=none; d=google.com; s=arc-20160816; b=P9xooyTgPVrKD9OAn215bYh1qGSikt87G0vu/VUFntVffhp/iUloydL1KmhtwvltIO ylfYhqGS1gH/p4RrdZhl9XdaPaVKVafX2TyBb4pM1ajq9rmuifPRVDHDoxvJenwN7zjH jIPYTZHCKegi2GDuGvhpbYUJdalpYgvptr5Dxcy00dAscjJKsgw0SOA9WldrZ/qrDtXA FKUtX1qX548SnP7vdAfg3rQsaf/909yTbDx8IFgcNrQLJRPI1iH1LdmV903mYWxQXdiH BVSOiKSkTTNuLagAFwR65q5lwSgEF+VKfKsJifDtj2hz17D2mQDuiW9fDrD+E0kRIDLI AAMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=3ssQCDVM74SPVby1fTm4z6JcG59jAK5ps2tKRPOXbU4=; b=YV5SKdDgfwxWAdCcQDpjS5WByU6ypdtBgXHo4uyklmP51sOOksa42g5VPWb+vXYe0b P/YwaIv5+n9DMNUOIk8+mMF4GLpWjZmppc+dJeggRhnNb70hfmTDmlOnsSxp3K1UiV9h SJcxLY5ivwdvcXn+TFK9uV2CDY0tNGK7B0bTxi94xSmSmwODMkmyo7Lv6kQybUD8Tbhf Sdp6rcg7QGOkIaKibVWVRrQum6TK1l7E9Gsz+hZjyR2APxjyFtk6aUW7C/ucQjKBJFzm BtcZyBU8yZf13TJBUkiKcpN0lsMtFbJxb0Uhgej4PX5AO4hv20CjNKX9toRcpeXw5BiL wUCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GVL4OezX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r66si8879799oie.255.2020.02.18.18.56.46; Tue, 18 Feb 2020 18:56:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GVL4OezX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728234AbgBSCzR (ORCPT + 99 others); Tue, 18 Feb 2020 21:55:17 -0500 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:45381 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728027AbgBSCzR (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=1582080915; 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=GVL4OezXwz3mU/QWmyOMkaWGZqdBaccYOwBHEAMVervBCWK2C6O7YogLiTlyZE0WHpIFZn ey3s0CMGC0gnpqDAkJcf3HClHNJhpNOpXJBJ8MVt3QDECurayKZ7W229K3fiUNZNAa+/vK sVK9T6a2HYJjxZe8ZwvX1cNHaOaPAoE= 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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