Yiwen Jiang
f7a14f32e7
ocfs2: fix a tiny race when running dirop_fileop_racer
...
When running dirop_fileop_racer we found a dead lock case.
2 nodes, say Node A and Node B, mount the same ocfs2 volume. Create
/race/16/1 in the filesystem, and let the inode number of dir 16 is less
than the inode number of dir race.
Node A Node B
mv /race/16/1 /race/
right after Node A has got the
EX mode of /race/16/, and tries to
get EX mode of /race
ls /race/16/
In this case, Node A has got the EX mode of /race/16/, and wants to get EX
mode of /race/. Node B has got the PR mode of /race/, and wants to get
the PR mode of /race/16/. Since EX and PR are mutually exclusive, dead
lock happens.
This patch fixes this case by locking in ancestor order before trying
inode number order.
Signed-off-by: Yiwen Jiang <jiangyiwen@huawei.com>
Signed-off-by: Joseph Qi <joseph.qi@huawei.com>
Cc: Joel Becker <jlbec@evilplan.org>
Reviewed-by: Mark Fasheh <mfasheh@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-06-23 16:47:45 -07:00
..
2014-06-12 10:30:18 -07:00
2014-05-06 17:38:00 -04:00
2014-06-12 10:30:18 -07:00
2014-06-12 10:30:18 -07:00
2014-06-04 16:54:21 -07:00
2014-06-06 16:08:09 -07:00
2014-05-06 17:38:00 -04:00
2014-06-21 14:21:43 -10:00
2014-06-06 16:08:14 -07:00
2014-06-12 23:06:23 -07:00
2014-06-12 10:30:18 -07:00
2014-06-06 16:08:16 -07:00
2014-06-04 16:53:53 -07:00
2014-04-04 15:39:39 -07:00
2014-04-04 15:39:39 -07:00
2014-06-06 16:08:14 -07:00
2014-06-12 10:26:14 -05:00
2014-05-06 17:38:00 -04:00
2014-06-04 16:54:14 -07:00
2014-06-04 16:54:21 -07:00
2014-06-12 10:30:18 -07:00
2014-06-04 16:54:14 -07:00
2014-06-12 00:18:51 -04:00
2014-06-12 10:30:18 -07:00
2014-06-12 10:30:18 -07:00
2014-06-12 10:30:18 -07:00
2014-06-12 10:30:18 -07:00
2014-04-04 15:39:39 -07:00
2014-06-06 16:08:16 -07:00
2014-06-12 10:30:18 -07:00
2014-06-12 10:30:18 -07:00
2014-05-06 17:38:00 -04:00
2014-06-12 10:30:18 -07:00
2014-05-06 17:38:00 -04:00
2014-06-12 10:30:18 -07:00
2014-06-04 16:54:11 -07:00
2014-04-07 17:59:17 -07:00
2014-05-21 10:26:13 +02:00
2014-04-18 14:20:48 +02:00
2014-06-12 10:30:18 -07:00
2014-06-12 10:30:18 -07:00
2014-06-03 08:11:18 -07:00
2014-06-10 11:50:57 -07:00
2014-05-06 17:38:00 -04:00
2014-05-06 17:38:00 -04:00
2014-06-04 16:54:21 -07:00
2014-06-12 10:30:18 -07:00
2014-06-17 16:42:48 -04:00
2014-05-06 17:38:00 -04:00
2014-01-25 03:14:05 -05:00
2014-06-06 16:08:16 -07:00
2014-06-12 10:30:18 -07:00
2014-06-23 16:47:45 -07:00
2014-05-06 17:38:00 -04:00
2014-03-13 10:14:33 -04:00
2014-06-08 11:31:16 -07:00
2014-06-06 16:08:13 -07:00
2014-03-13 10:14:33 -04:00
2014-03-13 10:14:33 -04:00
2014-05-05 17:25:50 +10:00
2014-06-12 00:18:51 -04:00
2014-06-12 10:30:18 -07:00
2014-05-06 17:37:55 -04:00
2014-06-04 16:53:52 -07:00
2014-06-03 08:11:18 -07:00
2014-05-06 17:38:00 -04:00
2014-06-12 10:30:18 -07:00
2014-05-06 17:39:36 -04:00
2014-06-12 10:30:18 -07:00
2014-06-12 10:30:18 -07:00
2014-06-14 19:43:27 -05:00
2014-03-27 09:52:54 -07:00
2014-06-10 13:57:22 -07:00
2014-06-05 08:05:29 -07:00
2014-06-04 16:54:21 -07:00
2014-04-03 16:21:16 -07:00
2014-06-12 10:30:18 -07:00
2014-06-04 16:54:10 -07:00
2014-03-04 08:05:21 +00:00
2014-03-06 16:30:44 +01:00
2014-04-22 08:23:58 -04:00
2014-04-19 13:23:31 -07:00
2014-06-12 10:30:18 -07:00
2014-01-29 16:22:40 -08:00
2014-05-06 17:32:52 -04:00
2014-06-06 16:08:16 -07:00
2014-01-25 03:13:04 -05:00
2014-06-16 17:21:59 -10:00
2014-06-06 07:56:22 +02:00
2014-04-22 08:23:58 -04:00
2014-06-12 10:30:18 -07:00
2014-05-06 17:31:10 -04:00
2014-04-03 16:21:05 -07:00
2014-04-04 14:49:16 -07:00
2014-06-10 13:57:22 -07:00
2014-02-07 16:08:57 -08:00
2014-06-04 16:53:55 -07:00
2014-06-10 12:29:05 -04:00
2014-05-19 11:02:18 -06:00
2014-03-18 19:24:49 -04:00
2014-04-01 23:19:09 -04:00
2014-06-04 16:54:02 -07:00
2014-06-10 13:57:22 -07:00
2014-04-01 23:19:18 -04:00
2014-05-06 17:36:00 -04:00
2014-05-06 17:39:42 -04:00
2014-04-01 23:19:08 -04:00
2014-04-01 23:19:08 -04:00
2014-05-06 13:58:42 -04:00
2014-04-01 23:19:09 -04:00
2014-05-06 17:37:55 -04:00
2014-06-04 16:53:52 -07:00
2014-06-12 00:28:09 -04:00
2014-06-04 16:54:11 -07:00
2014-02-22 02:02:28 +01:00
2014-01-23 16:57:40 -08:00