Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6013025ybv; Tue, 18 Feb 2020 08:12:38 -0800 (PST) X-Google-Smtp-Source: APXvYqxuUq2I/R/3aks8afc0udROohE4+p6lnG1wDdDafWBuUMULs0iqkWM0MOQL2fAc7De/CjLJ X-Received: by 2002:a05:6830:1d91:: with SMTP id y17mr15577281oti.276.1582042358695; Tue, 18 Feb 2020 08:12:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582042358; cv=none; d=google.com; s=arc-20160816; b=aN4XvFt3ThXOp+lSc0sfdxSHaq0xPiXQ8SjaGiJIf5/0u2DRDMTLqvmhN/ThujVF/e q23TwbWAbjjQ6r8UpBi6Y14SjsYvCbKP7eUOIS7N5UzodbaxluwxLs1bmFVTmAphslJT qNsYjhNNPdCRJm9Ug09Y5mM3m1D6NYZww7ccsqD9V8kOCVYjno9AQvNvpoG9Nnypfngt bEROZxXRoQgR0cM5kJyC/G3lu9dymFQ8WoRYrmH2pS9sq5i39Wy9bJvbo1Utjtrw0Esv 2K/GUh/gyemJZ6YeFs0kwM4Ds0aKKKbNGePszYLZIv92lSuknH9sLl6Ppa7gBNXiuzgO Xbjw== 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=CNVXd7GvQijAf9sUVbG2f1QgUfkHVv1jwB+UDYOWbyY=; b=UhZ69nsZTfkn/yiqoMM4Q6ox6xw4KUT3+nc8LARG5ZQGy/OKUPnloFcC143n0nH6kh DorqnPBPX/7IMmfsRJvY8iS4ZGzHmvItOURgpWQkZ2tS0jw2xrTS0JF0Ic25O7BwgkaP xuQxRUDQaBzQ8mrq9BaBdCme6Ey48k2xUId8Ip/MSWGChA56dY8p0GObfQBxuDhVj02M tokn2NBQWgN9f+0l3nV5gyrOJJXQG+nbBEOfs3bXI9A7utmjOF7GzOmishNF7GFpJ9zO NOLIWHu7IjP+Ic5O189z3PH1+2NwlncN3fUBJ5w5BfvlOH2GCVX5vomNg1psmOqbEAkc TsTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=sBI24QLX; 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 o15si1969403otp.314.2020.02.18.08.12.25; Tue, 18 Feb 2020 08:12:38 -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=sBI24QLX; 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 S1726613AbgBRQMG (ORCPT + 99 others); Tue, 18 Feb 2020 11:12:06 -0500 Received: from mail-oi1-f170.google.com ([209.85.167.170]:42036 "EHLO mail-oi1-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726415AbgBRQMG (ORCPT ); Tue, 18 Feb 2020 11:12:06 -0500 Received: by mail-oi1-f170.google.com with SMTP id j132so20615714oih.9 for ; Tue, 18 Feb 2020 08:12:05 -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=CNVXd7GvQijAf9sUVbG2f1QgUfkHVv1jwB+UDYOWbyY=; b=sBI24QLXeAMxnYobfUFiAmd4xR2PTbf+BdHJLpEnENN3qmIvaSodggHdxVC0a8TFor daiCdzzMriYxSKIJDxlEJfBopsHtk8VdOYbkisI/98VtSvYnBm/rESBdpNEJJPXu0FF8 0BOofIxPjKHH2UCJaaashNaSc+UrHk7gBR97j07A04GcQwrzuXuIgsQCEq/JmIEOeDi/ mfRYWHmCsOX35tJZn56nzIQq+sayeHW3VdvXIXHmKnTOmW5kNVP/nDcGO4e6Plhn6dWU U5qibufJ9kPP1ziTSLn4iP65+lhELzA/Z1ZgW2XEkCMDGEs440z34HMvlcKrmZoj1Nu0 Wv2w== 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=CNVXd7GvQijAf9sUVbG2f1QgUfkHVv1jwB+UDYOWbyY=; b=N4IV5YaAXft4rlw536QDO/9lCaSJkbEniB78LB6+8RlqLt2+ue4Qb3ekx4/vz8boVK C+aA4yuUmGAc21dGDJjWZ5chDfwTdLiZp5SajwW2UdsLzJ1NaOWWmjktPRAWooWoup5f /J/9PAXKZVxpzGEZYKGWD5CXuy0iv3SgWtyMAP8MWirGE4EsMtgrBDySDJaNr0nDoEiI ZNcuh8W9D2QUbseb1tJgTT0Dl4RYn/SuI8YzDiLv+wzcZ090cbeu2ylNMjWU/vEnLKC5 2qshptTKr7G3VAN2TYzhRE3U9bPbFrzp++ErYnx8/pwA0uSyfvQOtOOhgfpfDr1lTX00 T76A== X-Gm-Message-State: APjAAAVk6lCFTA7PsFzYrPmbbPU8Wwq7we7WNRZX1KhoffJS1WrQaFjD JTPQcqmQE5vN0TuM5epje4X7m2uj/rZVcpkhmffOBQ== X-Received: by 2002:aca:fcc1:: with SMTP id a184mr1665266oii.36.1582042324768; Tue, 18 Feb 2020 08:12:04 -0800 (PST) MIME-Version: 1.0 References: <20200213082643.GB9144@ming.t460p> <20200215034652.GA19867@ming.t460p> In-Reply-To: <20200215034652.GA19867@ming.t460p> From: Jesse Barnes Date: Tue, 18 Feb 2020 08:11:53 -0800 Message-ID: Subject: Re: BLKSECDISCARD ioctl and hung tasks To: Ming Lei Cc: Salman Qazi , 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 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. Thanks, Jesse