]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ocfs2: call ocfs2_abort when journal abort
authorRyan Ding <ryan.ding@oracle.com>
Mon, 21 Dec 2015 03:01:12 +0000 (11:01 +0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 26 Feb 2016 02:47:12 +0000 (18:47 -0800)
commitea32ba9ae3461e10b11f78341a8f0e62c7299b36
tree2a0dbb748d92e5850ba3b4f8d62eae4cbbd197d9
parent7a7891def349fc0d3f5aa0a9652cd08ca14efb93
ocfs2: call ocfs2_abort when journal abort

orabug: 22293201

journal can not recover from abort state, so we should take following action to
prevent file system from corruption:

1. change to readonly filesystem when local mount. We can not afford further
   write, so change to RO state is reasonable.

2. panic when cluster mount. Because we can not release lock resource in this
   state, other node will hung when it require a lock owned by this node. So
   panic and remaster is a reasonable choise.

ocfs2_abort() will do all the above work.

Signed-off-by: Ryan Ding <ryan.ding@oracle.com>
fs/ocfs2/journal.c