> > Is there everything else I can try?
>
> - MagicSysRq + A
>   or
> - set the aufs module parameter 'debug' to 1, just before the hang mount

If you try the second way, then please apply this patch.
It never fix the problem, but will produce debug messages.

J. R. Okajima

diff --git a/fs/aufs/hfsnotify.c b/fs/aufs/hfsnotify.c
index c48c315..6461f23 100644
--- a/fs/aufs/hfsnotify.c
+++ b/fs/aufs/hfsnotify.c
@@ -61,6 +61,21 @@ static int au_hfsn_alloc(struct au_hinode *hinode)
 				 /*mnt*/NULL, /*allow_dups*/1);
 }
 
+static int au_dbg_cond(int dead)
+{
+	int this_cpu;
+	unsigned long long t;
+	unsigned long nanosec_rem;
+
+	this_cpu = smp_processor_id();
+	t = cpu_clock(this_cpu);
+	nanosec_rem = do_div(t, 1000000000);
+	AuDbg("%d, %5lu.%06lu\n",
+	      this_cpu, (unsigned long)t, nanosec_rem / 1000);
+
+	return dead;
+}
+
 static void au_hfsn_free(struct au_hinode *hinode)
 {
 	struct au_hnotify *hn;
@@ -72,7 +87,7 @@ static void au_hfsn_free(struct au_hinode *hinode)
 	fsnotify_put_mark(mark);
 
 	/* TODO: bad approach */
-	wait_event(au_hfsn_wq, hn->hn_mark_dead);
+	wait_event(au_hfsn_wq, au_dbg_cond(hn->hn_mark_dead));
 }
 
 /* ---------------------------------------------------------------------- */
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d

Reply via email to