Skip to contentSkip to conversation

ocfs2: disable BUG assertions in reading blocks

PATCH New [email protected] 1 participant 1 message Jun 24, 2016 OCFS2

lore
Share & tools
lore
#0 lore raw

PATCH 35/41 ocfs2: disable BUG assertions in reading blocks

From: Gang He <[email protected]>
Subject: ocfs2: disable BUG assertions in reading blocks

According to some high-load testing, these two BUG assertions were encountered, this led system panic. Actually, there were some discussions about removing these two BUG() assertions, it would not bring any side effect.

Then, I did the the following changes,

1) use the existing macro CATCH_BH_JBD_RACES to wrap BUG() in the ocfs2_read_blocks_sync function like before.

2) disable the macro CATCH_BH_JBD_RACES in Makefile by default.

---

 fs/ocfs2/Makefile         |    2 --
 fs/ocfs2/buffer_head_io.c |    5 +++++
 2 files changed, 5 insertions(+), 2 deletions(-)
fs/ocfs2/Makefile renamed from fs/ocfs2/Makefile~ocfs2-disable-bug-assertions-in-reading-blocks +0 -1
diff -puN fs/ocfs2/Makefile~ocfs2-disable-bug-assertions-in-reading-blocks fs/ocfs2/Makefile
@@ -1,7 +1,5 @@
 ccflags-y := -Ifs/ocfs2
 
-ccflags-y += -DCATCH_BH_JBD_RACES