[Ocfs2-devel] lockdep warning in ocfs2 quota
Joel Becker
Joel.Becker at oracle.com
Tue Mar 30 12:53:56 PDT 2010
On Tue, Mar 30, 2010 at 06:36:57PM +0200, Jan Kara wrote:
> This is the culprit - we have to do some writes when reading dquot (to
> increase dquot use count and possibly also allocate space for further
> writes) but ocfs2_local_read_dquot is already called with dqio_mutex
> held so when ocfs2_global_read_dquot tries to start a transaction it
> is a violation of lock ordering.
> I guess I'll have to move all the code from ocfs2_local_read_dquot
> to ocfs2_acquire_dquot and do all the handling there with proper locking.
> I'll have a look at it.
Thanks for taking a look. Better we find the inversion sooner!
Joel
--
Life's Little Instruction Book #207
"Swing for the fence."
Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127
More information about the Ocfs2-devel
mailing list