[sheepdog] [PATCH 2/2] sheep: change a condition of refreshing inode for snapshot access

Hitoshi Mitake mitake.hitoshi at lab.ntt.co.jp
Mon Jul 20 08:56:57 CEST 2015


Even requests are issued to snapshot VDIs, refreshing is required for
handling a case of snapshot -> write something -> iSCSI multipath
failover.

Cc: Teruaki Ishizaki <ishizaki.teruaki at lab.ntt.co.jp>
Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
---
 sheep/vdi.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/sheep/vdi.c b/sheep/vdi.c
index f6e3a5f..d7e0a01 100644
--- a/sheep/vdi.c
+++ b/sheep/vdi.c
@@ -881,9 +881,6 @@ worker_fn bool is_refresh_required(uint32_t vid)
 		goto out;
 	}
 
-	if (entry->snapshot)
-		goto out;
-
 	if (entry->lock_state != LOCK_STATE_SHARED)
 		goto out;
 
-- 
1.9.1



More information about the sheepdog mailing list