Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7010948ybi; Thu, 13 Jun 2019 08:07:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZyuhfcWNifEvfKNt2Vr4m6O8tN6YsGBHrpxKhtyGvKzSq4fYw+ib5mS5wrOh5lyhwCtNl X-Received: by 2002:a62:15c3:: with SMTP id 186mr29997429pfv.141.1560438436575; Thu, 13 Jun 2019 08:07:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560438436; cv=none; d=google.com; s=arc-20160816; b=dZk7N6bvd09nXN3/5N6bH3je5HhF/xQzXzRbZlxkxj1xqaqwA3W/w5RdBrjO2i5pgI wKq84YIiFMcuRjRm5YFugKx4K7ibr4lBqaE4u8YgD2cp6YinrwtPdknSP32t5/+ZfW1Y in0WJe3SoNH2ARtAYBVOX2cXky4ZY+O9OO/0wPElGbCZ1G0BqlaOZYPAZek9IlNiYwDr aL6DmaKLhFohs0vaZzvz2ChdhqndoL8HpCe/HM6oPGGCbgfPVIWT4iD79p6lOZw3S61l j4L4e+TfL4NgL5rmuaWkRg4+V8rZc3oq7rX7lq+MvzKGx/myPV6rqnI2vgsbrpE1ELe+ hR6A== 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=sbvrt5MZdKQZtIDBTdvl9Mov/hKhPttcrBddG8hlTHo=; b=W7GxJARTD8KwB76aSWd/66Y05TbmwcMUrOwBRMPJP2G3h4EUePAX4gRkO43+6ZEtGS BZ84lxcBUTTjAOQiFDiqTA9oCG52KxXLL+RJR+5bs7CznOh4/stgt+ELZ5OJXCAZX3rG 4+x4gE7vQ6iUZUhwLoaUNTFmY3EnyP4+eD1RWo1Vw4hwE8BlEqpb5WXZVeHyWRDK4je7 UNsV2/ZHPpFHZR5ktEgdt7fEXQc8hYTObHQnMLZKQHwGHbwBDLP2o+y4DkD4XoR9lkRq iRjMmm7zLKT1GNEXFeJ641naqY/xe8t2KnLPiGDmJlgeb9jhDrE5h4m5UZkYLfW0KJVC qXsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=U4iRJrkg; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b17si3280920pls.52.2019.06.13.08.07.01; Thu, 13 Jun 2019 08:07:16 -0700 (PDT) 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=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=U4iRJrkg; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732480AbfFMPFX (ORCPT + 99 others); Thu, 13 Jun 2019 11:05:23 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:34592 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732446AbfFMOPw (ORCPT ); Thu, 13 Jun 2019 10:15:52 -0400 Received: by mail-qk1-f193.google.com with SMTP id t8so9143010qkt.1 for ; Thu, 13 Jun 2019 07:15:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toxicpanda-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=sbvrt5MZdKQZtIDBTdvl9Mov/hKhPttcrBddG8hlTHo=; b=U4iRJrkgboqXD/9ecVEMGKPpyhkTFeK6mRiuk3Hy6ZSjwXCUQjTvFcN1/3TbP0NwfD Cc0zRy15Gx4ZrC16COD805lwAeHf+qTzSuM79QtyZaBjBOLBNYC4OcekJA1r2UIVSfCF d7WXvg5HrlhBXYtFb5VvFctZCG/Ixpw8iY5IcU88+E9uOEfz1mmm4oqCAf/PiZySI+WX zEsdmJ64iKb2T8hzeutqLaiWHI3UhHek9Rp74I2YSN7P2KgZU/L9RdBvxkx4IV/qxmSt AGAkIzRqZ8bwB2xirmaAcULCaO3AAs2Bs0nonS+DUCjHnU1NBiJuLN34fx159zgfGaVJ GVgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=sbvrt5MZdKQZtIDBTdvl9Mov/hKhPttcrBddG8hlTHo=; b=PmG+bjeIfdXbNYrLVHfJ7PyEWq1qG4aVvqxsbb1ISYTpEnhaVsPEBDC5XJ8PejyLsS vWJsVFLYgeEOJOQCKIOz8JG561eBzEXeNNqi9uZiQKUn1HzxCSFgUcey9aXKI135IPP+ 379m0fBNWV9e1KZAF2F08MzyYQSP91L+brZsdL2qsuInS4bQyU88csoAiv+icDQbXpMQ 2igEd9LP3AEi9/KN4YIwY7oXY5qaZ47llm1ku18adPDJi+9F8T6szR1MWL8C7JvyBA6U NGHwiLAo+qbxFhtz4BWgOy7GbH6z3DHKJ+KvP3zScziPlL64Q8kCnb64TQdpa3/4sOdi eRtQ== X-Gm-Message-State: APjAAAXUUPMB9TGxS8GQHl/zggavTBK46bi4/Xlnel+pIhz8rYGuEB1v 7DzcIp9MHgmAQE82HEZjGM81cQ== X-Received: by 2002:a05:620a:16cc:: with SMTP id a12mr13267398qkn.256.1560435351183; Thu, 13 Jun 2019 07:15:51 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::9d6b]) by smtp.gmail.com with ESMTPSA id t29sm2155361qtt.42.2019.06.13.07.15.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Jun 2019 07:15:50 -0700 (PDT) Date: Thu, 13 Jun 2019 10:15:49 -0400 From: Josef Bacik To: Naohiro Aota Cc: linux-btrfs@vger.kernel.org, David Sterba , Chris Mason , Josef Bacik , Qu Wenruo , Nikolay Borisov , linux-kernel@vger.kernel.org, Hannes Reinecke , linux-fsdevel@vger.kernel.org, Damien Le Moal , Matias =?utf-8?B?QmrDuHJsaW5n?= , Johannes Thumshirn , Bart Van Assche Subject: Re: [PATCH 12/19] btrfs: expire submit buffer on timeout Message-ID: <20190613141548.vlczaxiqqzbxgtzk@MacBook-Pro-91.local> References: <20190607131025.31996-1-naohiro.aota@wdc.com> <20190607131025.31996-13-naohiro.aota@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190607131025.31996-13-naohiro.aota@wdc.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 07, 2019 at 10:10:18PM +0900, Naohiro Aota wrote: > It is possible to have bios stalled in the submit buffer due to some bug or > device problem. In such situation, btrfs stops working waiting for buffered > bios completions. To avoid such hang, add a worker that will cancel the > stalled bios after a timeout. > The block layer does this with it's request timeouts right? So it'll timeout and we'll get an EIO? If that's not working then we need to fix the block layer. Thanks, Josef