X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;ds=sidebyside;f=lustre%2Fquota%2Fqsd_reint.c;h=c2fb89b4f79c8d5559b1fe94e2601a846d10252f;hb=0100ab268c3120aa84847a88a2493988f38dee6b;hp=f5b8f0965d4232bd6441e0df32ba509e8dccec56;hpb=d10200a80770f0029d1d665af954187b9ad883df;p=fs%2Flustre-release.git diff --git a/lustre/quota/qsd_reint.c b/lustre/quota/qsd_reint.c index f5b8f09..c2fb89b 100644 --- a/lustre/quota/qsd_reint.c +++ b/lustre/quota/qsd_reint.c @@ -21,7 +21,7 @@ * GPL HEADER END */ /* - * Copyright (c) 2012, 2016, Intel Corporation. + * Copyright (c) 2012, 2017, Intel Corporation. * Use is subject to license terms. * * Author: Johann Lombardi @@ -631,11 +631,14 @@ int qsd_start_reint_thread(struct qsd_qtype_info *qqi) char *name; ENTRY; + if (qsd->qsd_dev->dd_rdonly) + RETURN(0); + /* don't bother to do reintegration when quota isn't enabled */ if (!qsd_type_enabled(qsd, qqi->qqi_qtype)) RETURN(0); - if (qsd->qsd_acct_failed) + if (qqi->qqi_acct_failed) /* no space accounting support, can't enable enforcement */ RETURN(0);