]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: Fixup orphan scan cleanup after failed mount
authorJeff Mahoney <jeffm@suse.com>
Tue, 7 Jul 2009 21:22:12 +0000 (17:22 -0400)
committerJoel Becker <joel.becker@oracle.com>
Wed, 8 Jul 2009 22:34:02 +0000 (15:34 -0700)
commit6ca301cd3f2dd748cf108ebb251ef4ae75f126ed
tree98a0cdc0b210392fc0fd0feb464603224c2863b1
parentda47939d8a1cd94cea5653d09b4db1239f297add
ocfs2: Fixup orphan scan cleanup after failed mount

If the mount fails for any reason, ocfs2_dismount_volume calls
ocfs2_orphan_scan_stop. It requires that ocfs2_orphan_scan_init
be called to setup the mutex and work queues, but that doesn't
happen if the mount has failed and we oops accessing an uninitialized
work queue.

This patch splits the init and startup of the orphan scan, eliminating
the oops.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/journal.c
fs/ocfs2/journal.h
fs/ocfs2/super.c