Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp433804imm; Wed, 22 Aug 2018 06:48:18 -0700 (PDT) X-Google-Smtp-Source: AA+uWPx1JJ3YwYi/O4ajG8M9LtDT6NDUTbdmELv3wOlyD4ywur101lMMB1if5/EfsDcMvFj/qbi/ X-Received: by 2002:a62:938e:: with SMTP id r14-v6mr33961403pfk.55.1534945698195; Wed, 22 Aug 2018 06:48:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534945698; cv=none; d=google.com; s=arc-20160816; b=yI5lh6qbJh6KFrIYbI0swMml2O+oFWYo9lVa7cHTRrjAAoCj26r+afHgN3ihKiA9b0 o27I3Ebum+2nk9ak5c9jU/HDB+id78M57EMaiyNkoYc7BodBWKSVNjvc+rN6/zHn07Te mG95JCaLaup97KOZnx5NacbVrrVA4SmEbYUte5C0gC/p9HTySbHFOEFHuB2IB//hRN/i 6VfYs5avo1yq8u46999NaUkg46OG3ySGaum2/1J6rkl3usloYaauIIVA/A1w52pulX5o a71Oo6I/KDevw1dRZrXqayKn/TtilUdrJFpXDbAeaME31BtYOTsxfXgyqTNAjOFuxZLu LUKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :arc-authentication-results; bh=FerzclDXlVndA3pLe2DKFZ96lzW+uKMNo5rjAjq+Qlw=; b=NXkHId1tP6X2km6RXR/fzkwChCs+QfWKb7jG2nIJFqSt8Z9gGYKxG2fwlWcJFkgHbR r5z6kU2XSVD15ctCruDcZspnw2qxuESqUG67STagx5pquqtcZRQxkt5bf0xLcY+ZqEQl rPY6CcAta9Ak81B6+yUjKX5GquFs6hLAmwrb76VWhoYnzPUxo/UO2QStoihTb76T4F1h A4djPzvQJBsIitQkih4MsyKRCRJyWxiTskmNIb0KRY2CglrnTCYBFM2WRpDKAp9/ErFP xcYmEfvjUDx4WoPLqYsDsh/ZQkUdhe7x/8IVgdv4cjXpaJheA2HDnXJKmhFMLxmul5Us W7jg== ARC-Authentication-Results: i=1; mx.google.com; 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 t4-v6si1646467plq.324.2018.08.22.06.48.02; Wed, 22 Aug 2018 06:48:18 -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; 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 S1728567AbeHVQ1w (ORCPT + 99 others); Wed, 22 Aug 2018 12:27:52 -0400 Received: from mail02.iobjects.de ([188.40.134.68]:33432 "EHLO mail02.iobjects.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728012AbeHVQ1v (ORCPT ); Wed, 22 Aug 2018 12:27:51 -0400 X-Greylist: delayed 526 seconds by postgrey-1.27 at vger.kernel.org; Wed, 22 Aug 2018 12:27:50 EDT Received: from tux.wizards.de (p3EE2F932.dip0.t-ipconnect.de [62.226.249.50]) by mail02.iobjects.de (Postfix) with ESMTPSA id 0461941678B7; Wed, 22 Aug 2018 14:54:16 +0200 (CEST) Received: from [192.168.100.223] (ragnarok.applied-asynchrony.com [192.168.100.223]) by tux.wizards.de (Postfix) with ESMTP id 8831FF015F9; Wed, 22 Aug 2018 14:54:15 +0200 (CEST) Subject: Re: [PATCH] blk-wbt: Avoid lock contention and thundering herd issue in wbt_wait To: Jens Axboe , Anchal Agarwal Cc: fllinden@amazon.com, sblbir@amazon.com, msw@amazon.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org References: <6bab69c9-b787-b12f-7738-72e05bf74444@kernel.dk> <72f90be2-0b63-d3a0-e953-da9232f44d5b@kernel.dk> <761bb0ab416649b8bf3bac1706124456@EX13D13UWB002.ant.amazon.com> <7f6c399d-bda1-0bbf-4ea1-07fc510ed1eb@kernel.dk> <3498fbfb-e9f3-7606-1fc3-904a0e61ff57@kernel.dk> <168d80ac73a44a6f9242c47c164778fc@EX13D13UWB002.ant.amazon.com> <20180820224241.GA72523@8c8590bceeee.ant.amazon.com> <70e2063a-53fa-2475-eed9-07db277c8c0d@kernel.dk> <20180822040126.GA18736@kaos-source-ops-60001.pdx1.amazon.com> <76ecb022-f167-67eb-8801-111fc209bbaa@kernel.dk> From: =?UTF-8?Q?Holger_Hoffst=c3=a4tte?= Organization: Applied Asynchrony, Inc. Message-ID: <834649ab-62d6-bc7f-ec60-6c1654ea3f26@applied-asynchrony.com> Date: Wed, 22 Aug 2018 14:54:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <76ecb022-f167-67eb-8801-111fc209bbaa@kernel.dk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/22/18 06:10, Jens Axboe wrote: > [...] > If you have time, please look at the 3 patches I posted earlier today. > Those are for mainline, so should be OK :-) I'm just playing along at home but with those 3 I get repeatable hangs & writeback not starting at all, but curiously *only* on my btrfs device; for inexplicable reasons some other devices with ext4/xfs flush properly. Yes, that surprised me too, but it's repeatable. Now this may or may not have something to do with some of my in-testing patches for btrfs itself, but if I remove those 3 wbt fixes, everything is golden again. Not eager to repeat since it hangs sync & requires a hard reboot.. :( Just thought you'd like to know. -h