Skip to content

Commit 4e23591

Browse files
committed
CP-51843: disable read-caching when activating Intellicache
Signed-off-by: Mark Syms <mark.syms@cloud.com>
1 parent 4968988 commit 4e23591

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

libs/sm/blktap2.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1786,7 +1786,7 @@ def _setup_cache(self, session, sr_uuid, vdi_uuid, local_sr_uuid,
17861786
raise
17871787

17881788
secondary = "%s:%s" % (self.target.get_vdi_type(),
1789-
self.PhyLink.from_uuid(sr_uuid, vdi_uuid).readlink())
1789+
(self.PhyLink.from_uuid(sr_uuid, vdi_uuid).readlink()))
17901790

17911791
util.SMlog("Parent tapdisk: %s" % prt_tapdisk)
17921792
leaf_tapdisk = Tapdisk.find_by_path(local_leaf_path)
@@ -1798,6 +1798,8 @@ def _setup_cache(self, session, sr_uuid, vdi_uuid, local_sr_uuid,
17981798
child_options["existing_prt"] = prt_tapdisk.minor
17991799
child_options["secondary"] = secondary
18001800
child_options["standby"] = scratch_mode
1801+
# Disable memory read caching
1802+
child_options.pop("o_direct", None)
18011803
try:
18021804
leaf_tapdisk = \
18031805
Tapdisk.launch_on_tap(blktap, local_leaf_path,

0 commit comments

Comments
 (0)