All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jose Quaresma <quaresma.jose@gmail.com>
To: Mark Hatle <mark.hatle@kernel.crashing.org>
Cc: OE-core <openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] [PATCH] sstate: inside the threadedpool don't write to the shared localdata
Date: Mon, 7 Mar 2022 17:30:09 +0000	[thread overview]
Message-ID: <CANPvuRnBFgnG4uqpLBqPORPsNBQyaOU1QewfwSkbtx5Cz8b1sA@mail.gmail.com> (raw)
In-Reply-To: <b5b62038-9549-114c-72b3-cc1acb633aa9@kernel.crashing.org>

[-- Attachment #1: Type: text/plain, Size: 1791 bytes --]

Mark Hatle <mark.hatle@kernel.crashing.org> escreveu no dia segunda,
7/03/2022 à(s) 16:14:

> Note, it appears this bug is in honister as well.
>

is already a little old, dunfell needs this fix as well.

jose


>
> On 3/6/22 3:08 PM, Jose Quaresma wrote:
> > When inside the threadedpool we make a copy of the localdata
> > to avoid some race condition, so we need to use this new
> > localdata2 and stop write the shared localdata.
> >
> > Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
> > ---
> >   meta/classes/sstate.bbclass | 2 +-
> >   1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
> > index dc9a2c085b..7aca415159 100644
> > --- a/meta/classes/sstate.bbclass
> > +++ b/meta/classes/sstate.bbclass
> > @@ -988,7 +988,7 @@ def sstate_checkhashes(sq_data, d, siginfo=False,
> currentcount=0, summary=True,
> >
> >               localdata2 = bb.data.createCopy(localdata)
> >               srcuri = "file://" + sstatefile
> > -            localdata.setVar('SRC_URI', srcuri)
> > +            localdata2.setVar('SRC_URI', srcuri)
> >               bb.debug(2, "SState: Attempting to fetch %s" % srcuri)
> >
> >               import traceback
> >
> >
> >
> >
> >
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#162853):
> https://lists.openembedded.org/g/openembedded-core/message/162853
> Mute This Topic: https://lists.openembedded.org/mt/89597961/5052612
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> quaresma.jose@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

-- 
Best regards,

José Quaresma

[-- Attachment #2: Type: text/html, Size: 3178 bytes --]

  reply	other threads:[~2022-03-07 17:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-06 21:08 [PATCH] sstate: inside the threadedpool don't write to the shared localdata Jose Quaresma
2022-03-06 21:22 ` [OE-core] " Richard Purdie
2022-03-07 16:14 ` Mark Hatle
2022-03-07 17:30   ` Jose Quaresma [this message]
2022-03-07 17:40     ` Steve Sakoman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CANPvuRnBFgnG4uqpLBqPORPsNBQyaOU1QewfwSkbtx5Cz8b1sA@mail.gmail.com \
    --to=quaresma.jose@gmail.com \
    --cc=mark.hatle@kernel.crashing.org \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.