Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp821610ybv; Wed, 19 Feb 2020 09:56:00 -0800 (PST) X-Google-Smtp-Source: APXvYqy6QZEnbRf7T90kIdZHd7bNVZYwFv4rOXXQ1kwVUXWM8ole0fo1qcNioXKXJoOwXQq6PpU0 X-Received: by 2002:a9d:600e:: with SMTP id h14mr19639432otj.113.1582134960000; Wed, 19 Feb 2020 09:56:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582134959; cv=none; d=google.com; s=arc-20160816; b=I7l7Ah8CujNX+4PLtlTsLXHNPfHmHcBHWMWXBCPMFINFCDKL77MYJ5NmmP++/j30Yq 6jmhZR8jB7ml2CSDj6SSEUkXrE1oK2loCIZn9QyOOhLesuNmtHbK4XZmZ30Wh2Qa/g/M BM5fcyvvHinVMKtxW8QnPuqpVHiVf7hjt98JKjUY+nYYrPXAfgege4Tci73CxJ7rQIlI ZwOXt7GGviSZ3PFTOoMAe721RuurK3ltehVCkwD9lsW6uvAiv0P6OGOoSv3z5q7NkX19 OhKW6Y+aJH40rRMCv+MqyjihsDaFWPtSrVtQfMwcgtFbwf97wuMheaU402W1ZreVarHN BUxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=pVM5w8pWHIZ/EotHHbfztVooGI8DcUzurZWsF1GVlv8=; b=jHQB0P8YSmhxRWMAJiE8e4WQk02m5nNkZdEzt13Kn4ocXw8LlLgiGRO8xSgwrktMUk p3vxB3/zEHtF2bQ4q6lkJqPVnSKBH3EBolTfuhGApzsmRCDeoD9gDJZPDkTTE/NKdWmP tNhQEduoGmsd/Kl631yLIODLa7rM63jlX+X31cj+KFHvCb+9dV5+N1nB4H8U61162Evu cH3qgvZ73gyK7gLb4vdAZ5efdOjETP0ruETAbUnH+CqOUG+J/4zsAiemN0ykU2cd1aVP cqwysPuUm9r9Z3yu0fSkHRdxb1mDQsUY9rKrsqvoRHk12wKutZJfqyd1Pk5YYjvJE5py IWnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=DjlV42MR; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h139si9368618oib.85.2020.02.19.09.55.47; Wed, 19 Feb 2020 09:55: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=@google.com header.s=20161025 header.b=DjlV42MR; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726643AbgBSRyp (ORCPT + 99 others); Wed, 19 Feb 2020 12:54:45 -0500 Received: from mail-io1-f68.google.com ([209.85.166.68]:42715 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726514AbgBSRyo (ORCPT ); Wed, 19 Feb 2020 12:54:44 -0500 Received: by mail-io1-f68.google.com with SMTP id z1so1513748iom.9 for ; Wed, 19 Feb 2020 09:54:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pVM5w8pWHIZ/EotHHbfztVooGI8DcUzurZWsF1GVlv8=; b=DjlV42MRt2LwvsGMIDSNfx2AlWBIF4tJPASkfQu/VLpaQu1yL754QGU09InNr6NAgu 8g5fJpIsH7COZk6EB0zw9/ige/4dde1ABsmKYLgBVu/sSXqHOe+gja1sJDFqOpL9WNFv 526qHK1l63cPNl2V1Nu/KQqfb2fSFZhFc7uAd7yb116KZFlpmb3P3fHT/jxuUtzSavc/ sKbiVxVfwUbPfYuxoX7dGZfaWG6ZGVSzyoUD6b1+cmHdDgfzJVqHfuOEUqzSPU6M4gm1 Ln42OI5fF0o8b5vsQpoESRmVpSwuIBs95MtyHTVicm5IeehmlyEC5ip8PQjf2Wwh6zuK /C3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pVM5w8pWHIZ/EotHHbfztVooGI8DcUzurZWsF1GVlv8=; b=TxljV1qLU9LmEAWJkU3uwn5PAU6Exd7acX1B5vua4jWllFuYKChTI/oWLeiG4PQ2yJ x8xy8mcS5BEaUzgizzhZdibbL3CmJJy4zUHF/BZhcfx42z2arQz5FCXGa2GoZLyZxsC1 silZXotE6xRRvGeXzSO5ex1WWc0+qd4uPE4Xxek/PysthIgMMYisvW1BZp4JxkH8CB/p Gi5Fi3Fcv2VA+FZF9pR8yexnuoETaqY9DdbwygfkEr2/vk0+SFHhEDej82LCblXVMNJB LncpkS6cz0YlqorGRARkdPfu/HLPmZG4t5kUFBLLbg3fdazm9yC0skQFHfSurlzwKgUj Rnwg== X-Gm-Message-State: APjAAAVETZvjzvODk5hjwAdjJnzTpbk1x1jc9Cb+SCFyLXg68os7hdoY PZgRWEAGFSjRWSv5Iu3+hpYz1QfMsHKtMBw7A7kVwA== X-Received: by 2002:a02:a48e:: with SMTP id d14mr21577724jam.30.1582134882789; Wed, 19 Feb 2020 09:54:42 -0800 (PST) MIME-Version: 1.0 References: <20200213082643.GB9144@ming.t460p> <20200215034652.GA19867@ming.t460p> <20200219025456.GD31488@ming.t460p> In-Reply-To: <20200219025456.GD31488@ming.t460p> From: Salman Qazi Date: Wed, 19 Feb 2020 09:54:31 -0800 Message-ID: Subject: Re: BLKSECDISCARD ioctl and hung tasks To: Ming Lei Cc: Jesse Barnes , Ming Lei , Bart Van Assche , Jens Axboe , Christoph Hellwig , Linux Kernel Mailing List , linux-block , Gwendal Grignou Content-Type: text/plain; charset="UTF-8" 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 6:55 PM Ming Lei wrote: > > 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? It doesn't exist on the original 4.4-based kernel where we reproduced this bug. I am curious how this interacts with this bug. > > Thanks, > Ming >