From: Jan Kara Subject: [PATCH 0/6] Fanotify cleanups Date: Thu, 30 Jan 2014 15:41:02 +0100 Message-ID: <1391092868-20029-1-git-send-email-jack@suse.cz> Cc: linux-fsdevel@vger.kernel.org, Eric Paris , Jan Kara To: Andrew Morton Return-path: Received: from cantor2.suse.de ([195.135.220.15]:52616 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752795AbaA3OlW (ORCPT ); Thu, 30 Jan 2014 09:41:22 -0500 Sender: linux-fsdevel-owner@vger.kernel.org List-ID: 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 removes some dead code (patches 1/6 and 3/6), uses the notify structure itself for processing response to permission event (patch 2/6) thus saving some space and allocation, converts access_mutex to spinlock (patch 4/6) which should be faster, and moves code around copy_event_to_user() to make code more readable (patch 5/6, 6/6). The patches pass LTP fanotify tests. Andrew, can you please take the patches for the next merge window? Honza