From patchwork Sun Jan 20 15:22:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Dryomov X-Patchwork-Id: 2008251 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 4F219DF223 for ; Sun, 20 Jan 2013 15:22:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752307Ab3ATPWs (ORCPT ); Sun, 20 Jan 2013 10:22:48 -0500 Received: from mail-ea0-f171.google.com ([209.85.215.171]:55017 "EHLO mail-ea0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752249Ab3ATPWr (ORCPT ); Sun, 20 Jan 2013 10:22:47 -0500 Received: by mail-ea0-f171.google.com with SMTP id c13so1448712eaa.30 for ; Sun, 20 Jan 2013 07:22:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=fsdIll+r8Pn7/ms36R7mB/7bB9iU8PCr48Co55wzCWM=; b=ajfzDLbeU/1LcJ5cB1pBkg9+VcwSc4FAEuMh9JR58RuNf5kzexnY0HmkwEJpF56NoZ iefD5wz/ivI6YyGI6xSxQOIp6BWIqZdUCVgDip2+gCsAoQRbxbUxk60Va86rJbczhqr0 03QVmERhosu5UGxrBC6UBDoDTpZ/olfrRwAITVS0lDUv+B5xO2IXbdHnr+NUqedFkt1M z6uz5WHqNRAdOvgI0Wel4dgRQ71UZOjpSud1v/BEZp9sh/mA0/WrL9YX3d1QSbpmqo8n LQzCLqCepsWLbZ4oPI5F0XXO6gIsuc/DGeufsdiTHtJOps074WrJ1YjjZT4aUPMfD5BB 96Cg== X-Received: by 10.14.215.197 with SMTP id e45mr50316295eep.0.1358695365859; Sun, 20 Jan 2013 07:22:45 -0800 (PST) Received: from localhost ([109.110.76.247]) by mx.google.com with ESMTPS id t44sm17828200eeo.2.2013.01.20.07.22.44 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 20 Jan 2013 07:22:45 -0800 (PST) From: Ilya Dryomov To: linux-btrfs@vger.kernel.org Cc: Chris Mason , Stefan Behrens , idryomov@gmail.com Subject: [PATCH 4/5] Btrfs: fix unlock order in btrfs_ioctl_rm_dev Date: Sun, 20 Jan 2013 17:22:31 +0200 Message-Id: <1358695352-7140-5-git-send-email-idryomov@gmail.com> X-Mailer: git-send-email 1.7.9.1 In-Reply-To: <1358695352-7140-1-git-send-email-idryomov@gmail.com> References: <1358695352-7140-1-git-send-email-idryomov@gmail.com> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Fix unlock order in btrfs_ioctl_rm_dev(). Signed-off-by: Ilya Dryomov --- fs/btrfs/ioctl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index b9a0190..9c079dd 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -2320,8 +2320,8 @@ static long btrfs_ioctl_rm_dev(struct file *file, void __user *arg) kfree(vol_args); out: mutex_unlock(&root->fs_info->volume_mutex); - mnt_drop_write_file(file); atomic_set(&root->fs_info->mutually_exclusive_operation_running, 0); + mnt_drop_write_file(file); return ret; }