]> 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>
Thu, 27 Jun 2013 23:50:56 +0000 (09:50 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:12 +0000 (16:37 +1000)
commit32a017bf8f3b64710edf1215e3eb26917d953fe7
treefc365ed89a6a58df0a99576297491d59fe1bff02
parentc4298548dccd2ba72275a2b05645a5ec63a47e80
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