From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1038175AbdDUKwj (ORCPT ); Fri, 21 Apr 2017 06:52:39 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:27762 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1038093AbdDUKwg (ORCPT ); Fri, 21 Apr 2017 06:52:36 -0400 Date: Fri, 21 Apr 2017 13:52:20 +0300 From: Dan Carpenter To: Jan Kara Cc: Miklos Szeredi , Amir Goldstein , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH] fsnotify: remove a stray unlock Message-ID: <20170421105220.tha7fa73smi7vowv@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Mailer: git-send-email haha only kidding User-Agent: NeoMutt/20170113 (1.7.2) X-Source-IP: aserv0022.oracle.com [141.146.126.234] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We recently shifted this code around, so we're no longer holding the lock on this path. Fixes: 755b5bc681eb ("fsnotify: Remove indirection from mark list addition") Signed-off-by: Dan Carpenter diff --git a/fs/notify/mark.c b/fs/notify/mark.c index 55955ded338d..9991f8826734 100644 --- a/fs/notify/mark.c +++ b/fs/notify/mark.c @@ -603,7 +603,6 @@ int fsnotify_add_mark_locked(struct fsnotify_mark *mark, struct inode *inode, FSNOTIFY_MARK_FLAG_ATTACHED); list_del_init(&mark->g_list); atomic_dec(&group->num_marks); - spin_unlock(&mark->lock); fsnotify_put_mark(mark); return ret;