]> git.baikalelectronics.ru Git - kernel.git/commit
dnotify: do not bother to lock entry->lock when reading mask
authorEric Paris <eparis@redhat.com>
Thu, 11 Jun 2009 15:09:47 +0000 (11:09 -0400)
committerEric Paris <eparis@redhat.com>
Thu, 11 Jun 2009 18:57:54 +0000 (14:57 -0400)
commitdf1d3bb92f0f44c2ce5140bf958284cfd4ef36a9
tree4a438d07fbce1acbb3970b631211aaf445f2e41b
parent7e7afc5967019f08c64c1d80e81bbed3213cd7ad
dnotify: do not bother to lock entry->lock when reading mask

entry->lock is needed to make sure entry->mask does not change while
manipulating it.  In dnotify_should_send_event() we don't care if we get an
old or a new mask value out of this entry so there is no point it taking
the lock.

Signed-off-by: Eric Paris <eparis@redhat.com>
fs/notify/dnotify/dnotify.c