Re: Rootfs mounted from user space - problem with umount

From: John Zielinski
Date: Sat Nov 29 2003 - 04:45:43 EST


William Lee Irwin III wrote:

Looks like either namespace->sem or sb->s_umount; you should be able
to put some instrumentation code in down_write() and/or down_read() to
see who acquired it first by checking to see if the sem acquired belongs
to rootfs' sb or some namespace (doubtful you'll create many of them).





Found it. It was a stupid mistake. I made the get_sb function return the same superblock when it was still get_sb_nodev. When I switched it to the proper get_sb_single I forgot to remove the code that returned the old sb so it wasn't calling get_sb_single to increase the sb's usage count. Doh!

John




-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/