Whamcloud - gitweb
LU-10143 osd-zfs: allocate sequence in advance 67/34267/3
authorAlex Zhuravlev <bzzz@whamcloud.com>
Sun, 20 Jan 2019 05:38:26 +0000 (08:38 +0300)
committerOleg Drokin <green@whamcloud.com>
Sat, 23 Feb 2019 05:10:29 +0000 (05:10 +0000)
on the controller, so that we have it ready before any potential
read-only makeup. this is what osd-ldiskfs is doing already.

Lustre-change: https://review.whamcloud.com/34069
Lustre-commit: 51c449b73994f2bba98ee27ac77f90c9aa846e88

Change-Id: I3d27f112b0d013ac923c5d250b296b5528b8112d
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/34267
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
lustre/osd-zfs/osd_handler.c
lustre/tests/replay-single.sh

index 82f2e05..713ec9b 100644 (file)
@@ -1453,6 +1453,16 @@ static int osd_fid_init(const struct lu_env *env, struct osd_device *osd)
                osd->od_cl_seq = NULL;
        }
 
+       if (ss->ss_node_id == 0) {
+               /*
+                * If the OSD on the sequence controller(MDT0), then allocate
+                * sequence here, otherwise allocate sequence after connected
+                * to MDT0 (see mdt_register_lwp_callback()).
+                */
+               rc = seq_server_alloc_meta(osd->od_cl_seq->lcs_srv,
+                                  &osd->od_cl_seq->lcs_space, env);
+       }
+
        RETURN(rc);
 }
 
index ef10db5..a4c2874 100755 (executable)
@@ -29,9 +29,14 @@ ALWAYS_EXCEPT="$REPLAY_SINGLE_EXCEPT 61d"
 #                                  7.5  (min)"
 [ "$SLOW" = "no" ] && EXCEPT_SLOW="44b"
 
-[ $(facet_fstype $SINGLEMDS) = "zfs" ] &&
-# bug number for skipped test:        LU-1867  LU-3127
+if [ $(facet_fstype $SINGLEMDS) = "zfs" ]; then
+       # bug number for skipped test:        LU-1867   LU-3127
        ALWAYS_EXCEPT="$ALWAYS_EXCEPT 89        73b"
+       if [ $MDSCOUNT -gt 1 ]; then
+       # bug number for skipped test:   LU-11330
+               ALWAYS_EXCEPT+="  70d"
+       fi
+fi
 
 build_test_filter