Tristan Ye 39c99f12f1 Ocfs2: Teach 'coherency=full' O_DIRECT writes to correctly up_read i_alloc_sem.
Due to newly-introduced 'coherency=full' O_DIRECT writes also takes the EX
rw_lock like buffered writes did(rw_level == 1), it turns out messing the
usage of 'level' in ocfs2_dio_end_io() up, which caused i_alloc_sem being
failed to get up_read'd correctly.

This patch tries to teach ocfs2_dio_end_io to understand well on all locking
stuffs by explicitly introducing a new bit for i_alloc_sem in iocb's private
data, just like what we did for rw_lock.

Signed-off-by: Tristan Ye <tristan.ye@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
2010-12-09 15:36:48 -08:00
..
2010-10-29 04:16:31 -04:00
2009-10-28 23:05:57 -07:00
2010-09-08 14:25:53 +08:00
2010-09-10 09:18:15 -07:00
2010-09-10 09:18:15 -07:00
2009-04-03 11:39:16 -07:00
2010-09-10 09:18:15 -07:00
2010-09-10 09:18:15 -07:00
2010-09-10 09:18:15 -07:00
2009-10-28 23:05:57 -07:00
2008-10-13 13:57:57 -07:00
2010-05-05 18:17:30 -07:00
2010-10-25 21:26:11 -04:00
2008-02-03 17:33:42 +02:00
2008-01-25 15:05:46 -08:00
2010-05-21 18:31:20 -04:00