Skip to content
Commit 8b712cd5 authored by Jeff Mahoney's avatar Jeff Mahoney Committed by Joel Becker
Browse files

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: default avatarJeff Mahoney <jeffm@suse.com>
Signed-off-by: default avatarJoel Becker <joel.becker@oracle.com>
parent 44b57280
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment