Lines Matching defs:primary
754 /* First execute an IO to the primary region */
875 struct ftl_md *primary = md->owner.private;
879 primary->io.status = status;
880 io_done(primary);
882 /* Now continue the persist procedure on the primary MD object */
883 if (0 == io_init(primary, FTL_MD_OP_PERSIST)) {
884 io_submit(primary);
886 spdk_thread_send_msg(spdk_get_thread(), exception, primary);
918 struct ftl_md *primary = md->owner.private;
922 primary->io.status = -EIO;
923 io_done(primary);
926 * Restoring from the mirror successful. Synchronize mirror to the primary.
927 * Because we read MD content from the mirror, we can disable it, only the primary
930 primary->io.status = 0;
931 primary->mirror_enabled = false;
932 io_cleanup(primary);
933 ftl_md_persist(primary);
934 primary->mirror_enabled = true;
941 struct ftl_md *primary = md->owner.private;
944 /* Cannot sync the object from the primary to the mirror, mark error and fail */
945 primary->io.status = -EIO;
946 io_done(primary);
948 primary->cb(dev, primary, primary->io.status);
949 io_cleanup(primary);
957 /* Failed to read MD from primary region, try it from mirror.
959 * feature we can restore from primary and mirror region
981 /* There was a dirty shutdown, synchronize primary to mirror */
1053 struct ftl_md *primary = secondary->owner.private;
1057 primary->io.status = status;
1058 io_done(primary);
1060 /* Now continue the persist procedure on the primary MD object */
1061 io_submit(primary);
1078 /* Configure the IO for the primary region now */