fanotify: convert access_mutex to spinlock
authorJan Kara <jack@suse.cz>
Thu, 3 Apr 2014 21:46:34 +0000 (14:46 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Apr 2014 23:20:51 +0000 (16:20 -0700)
commit9573f79355ff3711c98227d14a9b7f4cb3222b97
treeb1ad8d66757b538cf67a570332ae263e2510fc50
parentf083441ba86acb9e2ef9c1d1747725e488c8b1ff
fanotify: convert access_mutex to spinlock

access_mutex is used only to guard operations on access_list.  There's
no need for sleeping within this lock so just make a spinlock out of it.

Signed-off-by: Jan Kara <jack@suse.cz>
Cc: Eric Paris <eparis@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/notify/fanotify/fanotify_user.c
include/linux/fsnotify_backend.h