Message ID | 20181011195431.3441-37-josef@toxicpanda.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-btrfs-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F24FA157A for <patchwork-linux-btrfs@patchwork.kernel.org>; Thu, 11 Oct 2018 19:55:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E097B2C09B for <patchwork-linux-btrfs@patchwork.kernel.org>; Thu, 11 Oct 2018 19:55:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D530C2C0A2; Thu, 11 Oct 2018 19:55:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 69D352C09B for <patchwork-linux-btrfs@patchwork.kernel.org>; Thu, 11 Oct 2018 19:55:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727194AbeJLDY1 (ORCPT <rfc822;patchwork-linux-btrfs@patchwork.kernel.org>); Thu, 11 Oct 2018 23:24:27 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:43913 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726786AbeJLDY1 (ORCPT <rfc822;linux-btrfs@vger.kernel.org>); Thu, 11 Oct 2018 23:24:27 -0400 Received: by mail-qt1-f193.google.com with SMTP id q41-v6so11337394qtq.10 for <linux-btrfs@vger.kernel.org>; Thu, 11 Oct 2018 12:55:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toxicpanda-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=91liZIK+wxIF7dRdH1otjGSMGHeQwahR4ZLfPo8AmG8=; b=v/TtigltNv8iu0A4OOER5xeVDELJDu+ylZUhS/Y0Eo2MtY+2ODahH2ZKfEj6ZcnxrF 35S2HvDSeyPIKhAqV2B76rV1G0AgCgc2JdeWLVSNnWi2z6sfNHaOxM8bjbeBlcQfZHtj XMqddfcf0YENay4onUheOzOCQotpxnKuNkdSnXBk3MgTjxXqOPvIFbp6A1KIa7qXp2DA RPoKnjEIobPNYAwDsg3OeM7yEEigBD7fObqPvR91oKbnDXXrYTDpz5Z/+LfySXzOiznJ 4DEUwq68qgUor/bGVjYkd+AN5FZdQmtMXi/XUo5fPvuQYxIdEbvS0yyq/QPHL7yzpyQd WbQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=91liZIK+wxIF7dRdH1otjGSMGHeQwahR4ZLfPo8AmG8=; b=AJGS9d3g7Wmnmwfy1JAFpkIbx/syRd92VNzIVWKKIsXku3vXJ9e/1OADAyQoL4j9It tuqncgMrS1XdD9sDO8WFknuMjLMo0zhRbWfYvBOcvNZ07/qyAcf/f8GG8Qd8iwM6/pEY L9Ry2KNsSgTPhcKixEBGS5IcFtjomU50/Y2S749FgrIuOUqvnDsPJAuSacCaTnIAMnMF voC/JzZ9K239fVxMZs2NRIECCGeSV28mCzzU4FROTqIZCUVD0YUWPIpQM9urThC/d52l h1rqzwYpQfA03jLdfKczl0jjKIaRoY+y3NUoE5PYFMHJv3QTitR/IvlTvbZ0456LaV5d y00Q== X-Gm-Message-State: ABuFfohV7jPrQNhsZ35YfWkK1Na33c6/ciDnnR/z6D7lJi7iBmaRdHEZ RpJAtCnuxESzgE2y41hqn3RxAQ== X-Google-Smtp-Source: ACcGV62d8xlbIahJXMdbeEBhKdCju+vZsZBjE2S7VmmaXocH0iZxSSCbSNC8UDdrqKO0k7TYWm9nPQ== X-Received: by 2002:aed:25d1:: with SMTP id y17-v6mr2954267qtc.217.1539287741071; Thu, 11 Oct 2018 12:55:41 -0700 (PDT) Received: from localhost ([107.15.81.208]) by smtp.gmail.com with ESMTPSA id s17-v6sm16895967qtj.31.2018.10.11.12.55.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Oct 2018 12:55:40 -0700 (PDT) From: Josef Bacik <josef@toxicpanda.com> To: kernel-team@fb.com, linux-btrfs@vger.kernel.org Subject: [PATCH 36/42] btrfs: wait on caching when putting the bg cache Date: Thu, 11 Oct 2018 15:54:25 -0400 Message-Id: <20181011195431.3441-37-josef@toxicpanda.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20181011195431.3441-1-josef@toxicpanda.com> References: <20181011195431.3441-1-josef@toxicpanda.com> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: <linux-btrfs.vger.kernel.org> X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
My current patch queue
|
expand
|
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 6174d1b7875b..4b74d8a97f7c 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -9894,6 +9894,7 @@ void btrfs_put_block_group_cache(struct btrfs_fs_info *info) block_group = btrfs_lookup_first_block_group(info, last); while (block_group) { + wait_block_group_cache_done(block_group); spin_lock(&block_group->lock); if (block_group->iref) break;