Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8E57CC433FF for ; Mon, 5 Aug 2019 17:50:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5D08E20B1F for ; Mon, 5 Aug 2019 17:50:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727328AbfHERuW (ORCPT ); Mon, 5 Aug 2019 13:50:22 -0400 Received: from mx2.suse.de ([195.135.220.15]:50622 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726559AbfHERuW (ORCPT ); Mon, 5 Aug 2019 13:50:22 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 6949BB0BF; Mon, 5 Aug 2019 17:50:21 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 86A56DABC7; Mon, 5 Aug 2019 19:50:53 +0200 (CEST) Date: Mon, 5 Aug 2019 19:50:53 +0200 From: David Sterba To: Josef Bacik Cc: linux-btrfs@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH 0/5] Rework eviction space flushing Message-ID: <20190805175052.GD28208@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Josef Bacik , linux-btrfs@vger.kernel.org, kernel-team@fb.com References: <20190801221937.22742-1-josef@toxicpanda.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190801221937.22742-1-josef@toxicpanda.com> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Thu, Aug 01, 2019 at 06:19:32PM -0400, Josef Bacik wrote: > This is a set of patches to address how we do space flushing for inode > evictions. Historically we've only been allowed to do a few things to reclaim > space for inode evictions, mostly because we'd deadlock with iput. But we have > delayed iputs in place to make sure we're always doing iput where it's > completely safe to do an iput. > > However we do run iputs for flushing, so we can't just do FLUSH_ALL, otherwise > we could deadlock. Also we still want to prioritize evictions for space > reclamation because we likely will free up space for other people to make > reservations. > > The first 4 patches are preparation patches, just refactoring so we can add this > new flushing time for eviction. This allows us to clean up our current ad-hoc > loop we have for reclaiming space for evictions and use the common helpers that > everybody else uses. Thanks, I'll add this as a topic branch to for-next for testing, I have only skimmed the patches and did not do any kind of review.