From patchwork Thu Aug 30 22:26:16 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sage Weil X-Patchwork-Id: 1390291 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 132A13FDF6 for ; Thu, 30 Aug 2012 22:26:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752847Ab2H3W0Y (ORCPT ); Thu, 30 Aug 2012 18:26:24 -0400 Received: from cobra.newdream.net ([66.33.216.30]:43164 "EHLO cobra.newdream.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752726Ab2H3W0W (ORCPT ); Thu, 30 Aug 2012 18:26:22 -0400 Received: from nine.msi.event (unknown [38.96.16.75]) by cobra.newdream.net (Postfix) with ESMTPA id DED7181350; Thu, 30 Aug 2012 15:26:21 -0700 (PDT) From: Sage Weil To: linux-btrfs@vger.kernel.org Cc: Sage Weil Subject: [PATCH 2/3] Btrfs: set journal_info in async trans commit worker Date: Thu, 30 Aug 2012 15:26:16 -0700 Message-Id: <1346365577-9405-3-git-send-email-sage@inktank.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1346365577-9405-1-git-send-email-sage@inktank.com> References: <1346365577-9405-1-git-send-email-sage@inktank.com> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org We expect current->journal_info to point to the trans handle we are committing. Signed-off-by: Sage Weil --- fs/btrfs/transaction.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index efc41a5..f910a26 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c @@ -1236,6 +1236,8 @@ static void do_async_commit(struct work_struct *work) &ac->root->fs_info->sb->s_writers.lock_map[SB_FREEZE_FS-1], 0, 1, _THIS_IP_); + current->journal_info = ac->newtrans; + btrfs_commit_transaction(ac->newtrans, ac->root); kfree(ac); }