X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fosd-zfs%2Fosd_index.c;fp=lustre%2Fosd-zfs%2Fosd_index.c;h=d0caf360bdb2a8da4893eb7ab19945c91f55f52c;hb=b76df292c241a6db8dfad76d0f5f4cb8babe22bf;hp=f11a6e44ab1338e4125cb4a2ecddf2891827a33b;hpb=689714eb511d39e225da64d8bfae42a4b2554626;p=fs%2Flustre-release.git diff --git a/lustre/osd-zfs/osd_index.c b/lustre/osd-zfs/osd_index.c index f11a6e4..d0caf36 100644 --- a/lustre/osd-zfs/osd_index.c +++ b/lustre/osd-zfs/osd_index.c @@ -564,7 +564,7 @@ osd_consistency_check(const struct lu_env *env, struct osd_device *osd, RETURN(rc); } - if (thread_is_running(&scrub->os_thread)) { + if (scrub->os_running) { if (scrub->os_pos_current > oid) RETURN(0); } else if (osd->od_auto_scrub_interval == AS_NEVER) { @@ -596,7 +596,7 @@ again: insert = false; trigger: - if (thread_is_running(&scrub->os_thread)) { + if (scrub->os_running) { if (!dn) { rc = __osd_obj2dnode(osd->od_os, oid, &dn); /* The object has been removed (by race maybe). */