]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dnotify: replace dnotify_mark_mutex with mark mutex of dnotify_group
authorLino Sanfilippo <LinoSanfilippo@gmx.de>
Wed, 19 Jun 2013 00:05:30 +0000 (10:05 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:12:43 +0000 (17:12 +1000)
commit2541aedb503a0c7b5700a3e799fc7bda6f0242fc
tree764b678eb59f65358e9f9871ad12c7ab46619668
parente9a81c77663f982c210da58dfc26207c8c08d732
dnotify: replace dnotify_mark_mutex with mark mutex of dnotify_group

There is no need to use a special mutex to protect against the fcntl/close
race (see dnotify.c for a description of this race).  Instead the
dnotify_groups mark mutex can be used.

Signed-off-by: Lino Sanfilippo <LinoSanfilippo@gmx.de>
Cc: Eric Paris <eparis@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/notify/dnotify/dnotify.c