From: Jan Kara Subject: [PATCH 0/5 v2] Fanotify cleanups Date: Mon, 3 Mar 2014 12:12:18 +0100 Message-ID: <1393845143-28007-1-git-send-email-jack@suse.cz> Cc: LKML , linux-fsdevel@vger.kernel.org, Eric Paris , Jan Kara To: Andrew Morton Return-path: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Hello, when fixing use-after-free bug with fanotify introduced by my previous cleanup patches (the fix is already merged by Linus), I have better understood handling of permission events and found a couple of things that can be further cleaned up. This patch series uses the notify structure itself for processing response to permission event (patch 2/5) thus saving some space and allocation, converts access_mutex to spinlock (patch 3/5) which should be faster, and moves code around copy_event_to_user() to make code more readable (patch 4/5, 5/5). The patches pass LTP fanotify tests. Andrew, can you please take the patches? Changes since v1: - rebased on top of latest fanotify fixes which went to Linus (3.13-rc5) Honza