Skip to content

Commit 4d00908

Browse files
Fix deadlock on plugin shutdown.
Signed-off-by: Anusha Ragunathan <[email protected]>
1 parent 5947bf4 commit 4d00908

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

integration-cli/docker_cli_daemon_experimental_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func (s *DockerDaemonSuite) TestDaemonRestartWithPluginEnabled(c *check.C) {
4646
c.Assert(out, checker.Contains, "true")
4747
}
4848

49-
// TestDaemonRestartWithPluginEnabled tests state restore for a disabled plugin
49+
// TestDaemonRestartWithPluginDisabled tests state restore for a disabled plugin
5050
func (s *DockerDaemonSuite) TestDaemonRestartWithPluginDisabled(c *check.C) {
5151
if err := s.d.Start(); err != nil {
5252
c.Fatalf("Could not start daemon: %v", err)

plugin/manager_linux.go

-4
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,6 @@ func (pm *Manager) Shutdown() {
174174
}
175175
}
176176
close(p.exitChan)
177-
pm.Lock()
178-
p.PluginObj.Active = false
179-
pm.save()
180-
pm.Unlock()
181177
}
182178
if err := os.RemoveAll(p.runtimeSourcePath); err != nil {
183179
logrus.Errorf("Remove plugin runtime failed with error: %v", err)

0 commit comments

Comments
 (0)