xfs: fix error handling in xfs_log_mount
authorChristoph Hellwig <hch@lst.de>
Thu, 12 Feb 2009 18:55:48 +0000 (19:55 +0100)
committerChristoph Hellwig <hch@brick.lst.de>
Thu, 12 Feb 2009 18:55:48 +0000 (19:55 +0100)
commit264307520b120593ba63c4a23c58dd5e2ec5e822
tree3c0e16771f6be9e35f42c6f9d55ec474e7479291
parent8e08f6eb34af13b78d379a025e4c9f8612b47b95
xfs: fix error handling in xfs_log_mount

We can't just call xfs_log_unmount_dealloc on any failure because the
ail thread which is torn down by xfs_log_unmount_dealloc might not
be initialized yet.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Felix Blyakher <felixb@sgi.com>
Reported-by: Lachlan McIlroy <lachlan@sgi.com>
fs/xfs/xfs_log.c