Orabug:
17988729
Customers upgrading to uek2 and above will see the default coherency option
set to 'full' which impacts -ve performance. This patch changes coherence
option to buffered which keeps the default behaviour same as old(UEK1).
If an application that does direct i/o needs cache coherency then they can
use mount option 'coherency=full'
Signed-off-by: Wengang Wang <wen.gang.wang@oracle.com>
Acked-by: Srinivas Eeda <srinivas.eeda@oracle.com>
(cherry picked from commit
020a20029508d2d7f36470bebd23f053de4b0dbe)
mopt->commit_interval = 0;
mopt->mount_opt = OCFS2_MOUNT_NOINTR;
+
+ /*
+ * Make 'buffered' as default coherency option. This is to keep the
+ * default behaviour unchanged(same as in UEK1)
+ */
+ mopt->mount_opt |= OCFS2_MOUNT_COHERENCY_BUFFERED;
+
mopt->atime_quantum = OCFS2_DEFAULT_ATIME_QUANTUM;
mopt->slot = OCFS2_INVALID_SLOT;
mopt->localalloc_opt = -1;