]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: do not BUG if buffer not uptodate in __ocfs2_journal_access
authorJoseph Qi <joseph.qi@huawei.com>
Fri, 4 Sep 2015 22:43:43 +0000 (15:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 4 Sep 2015 23:54:41 +0000 (16:54 -0700)
commit5764f80819a35b9e64624905f9820e4697087450
tree6deb5734c6ed618e21d5d04979e8f6e3e1f651a4
parent1286b83cd6edb068ffd6274c78069d94067b748b
ocfs2: do not BUG if buffer not uptodate in __ocfs2_journal_access

When storage network is unstable, it may trigger the BUG in
__ocfs2_journal_access because of buffer not uptodate.  We can retry the
write in this case or return error instead of BUG.

Signed-off-by: Joseph Qi <joseph.qi@huawei.com>
Reported-by: Zhangguanghui <zhang.guanghui@h3c.com>
Tested-by: Zhangguanghui <zhang.guanghui@h3c.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/journal.c