[OpenAFS-devel] FW: [reiserfs-list] Non-daemonized kernel thread

Neulinger, Nathan nneul@umr.edu
Thu, 19 Apr 2001 14:36:57 -0500


just happened to see this on reiserfs list... Wonder if something similar
might be the cause of the umount issues w/ afs?

-- Nathan

-----Original Message-----
From: Phil Auld [mailto:pauld@egenera.com] 
Sent: Thursday, April 19, 2001 2:24 PM
To: reiserfs-list@namesys.com
Subject: [reiserfs-list] Non-daemonized kernel thread


Hi all,

Thanks for the great file system.

One thing I have noticed is umount reporting busy filesystems. This has been
traced to 
kernel threads not removing their fs attachments on start-up. The daemonize
function in 
2.4 will be a nice thing to move onto. Reiserfs is far from alone in this :)

The simple scenario is to mount a file system, cd into it, then mount a
reiserfs
file system somewhere not under this file system. Then cd out of the first
file
system and 
umount will fail. 

Here is the one liner in case someone wants to incorporate it into the tree.
It
is for 
3.5.32 although it may apply to 3.6.x with a line offset. 


--- journal.c.orig	Thu Apr 19 15:12:56 2001
+++ journal.c	Thu Apr 19 15:12:12 2001
@@ -1846,6 +1846,7 @@
   lock_kernel() ;
   exit_files(current);
   exit_mm(current);
+  exit_fs(current);
 
   spin_lock_irq(&current->sigmask_lock);
   sigfillset(&current->blocked);


Cheers,

Phil


 
------------------------------------------------------
Philip R. Auld, Ph.D.                  Technical Staff 
Egenera Corp.                        pauld@egenera.com
165 Forest St, Marlboro, MA 01752        (508)786-9444