]> code.ossystems Code Review - openembedded-core.git/commit
package: Rework PACKAGELOCK based upon sstate for do_packagedata
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 18 Jul 2018 12:54:05 +0000 (13:54 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 24 Jul 2018 10:52:07 +0000 (11:52 +0100)
commitf7106cdf2190d9ec59132a1cb2bb431d653cd9c5
treee216c20835591175eb6aef1c7d4e50e04ca3662a
parent88f0c214e593a45566df5131bda4c946f5ccc8c2
package: Rework PACKAGELOCK based upon sstate for do_packagedata

I think this lock dates from before we had sstate for do_packagedata.

Since WORKDIR is recipe specific and we write into WORKDIR, we no longer need
any write locks in the do_packagedata code itself, its handled by the sstate
task lock for the final copy in at the end. The final write lock can be simply
removed.

The only time we need read locking is when actually reading data from the
shared directory. We can therefore reduce the window the lock is held
significantly as well, hence improving the speed of packagedata tasks running
in parallel.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package.bbclass