From 7005d07fa80a9399a6d8b195c283e6dbaf79f564 Mon Sep 17 00:00:00 2001 From: Jeff Zvier Date: Tue, 18 Aug 2020 20:23:49 +0800 Subject: [PATCH] recover use graphLock when mount a layer Signed-off-by: Jeff Zvier --- store.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/store.go b/store.go index 937bf8c3a6..2a34c84ccc 100644 --- a/store.go +++ b/store.go @@ -2630,6 +2630,9 @@ func (s *store) mount(id string, options drivers.MountOpts) (string, error) { if err != nil { return "", err } + + s.graphLock.Lock() + defer s.graphLock.Unlock() rlstore.Lock() defer rlstore.Unlock() if modified, err := rlstore.Modified(); modified || err != nil {