lkml.org 
[lkml]   [2004]   [Apr]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectFix for ext3 journalled quota
  Hi!

I've attached a fix for a problem in ext3 journalled quota patch - the
problem is that detecting whether dqput() sleeps was wrong and so we
could possibly schedule when holding a spinlock. If you applied the
patch for journalled quota please apply also this one.
Andrew, can you please apply the patch to your kernel?

Thanks
Honza

diff -ruX /home/jack/.kerndiffexclude linux-2.6.5-2-jquota/fs/dquot.c linux-2.6.5-3-jquota2/fs/dquot.c
--- linux-2.6.5-2-jquota/fs/dquot.c 2004-04-21 10:45:30.000000000 +0200
+++ linux-2.6.5-3-jquota2/fs/dquot.c 2004-04-21 10:50:13.000000000 +0200
@@ -642,7 +642,7 @@
/* Return 0 if dqput() won't block (note that 1 doesn't necessarily mean blocking) */
static inline int dqput_blocks(struct dquot *dquot)
{
- if (atomic_read(&dquot->dq_count) <= 1 && dquot_dirty(dquot))
+ if (atomic_read(&dquot->dq_count) <= 1)
return 1;
return 0;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.021 / U:0.428 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site