diff options
author | Lino Sanfilippo <LinoSanfilippo@gmx.de> | 2011-06-14 17:29:48 +0200 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2012-12-11 19:29:45 +0100 |
commit | 104d06f08ea59247cb0e7e548c5a5d22d21dcfd5 (patch) | |
tree | 91f380d7fd26cbcab88635327c99524e9164d36f /fs/binfmt_aout.c | |
parent | fsnotify: use reference counting for groups (diff) | |
download | linux-104d06f08ea59247cb0e7e548c5a5d22d21dcfd5.tar.xz linux-104d06f08ea59247cb0e7e548c5a5d22d21dcfd5.zip |
fsnotify: take groups mark_lock before mark lock
Race-free addition and removal of a mark to a groups mark list would be easier
if we could lock the mark list of group before we lock the specific mark.
This patch changes the order used to add/remove marks to/from mark lists from
1. mark->lock
2. group->mark_lock
3. inode->i_lock
to
1. group->mark_lock
2. mark->lock
3. inode->i_lock
Signed-off-by: Lino Sanfilippo <LinoSanfilippo@gmx.de>
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'fs/binfmt_aout.c')
0 files changed, 0 insertions, 0 deletions