[PR #10487] Fix "Stopping..." scheduler hang #13255

Closed
opened 2026-04-13 00:22:11 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/ollama/ollama/pull/10487

State: closed
Merged: Yes


This fixes a race condition due to lock inversion which resulted in models failing to unload and reporting "Stopping..." indefinitely until the ollama server was killed.

The primary bug was updateFreeSpace getting stuck while another model was unloading.

Fixes #7606
Fixes #8178
Fixes #8969
Fixes #9617
Fixes #10119

**Original Pull Request:** https://github.com/ollama/ollama/pull/10487 **State:** closed **Merged:** Yes --- This fixes a race condition due to lock inversion which resulted in models failing to unload and reporting "Stopping..." indefinitely until the ollama server was killed. The primary bug was updateFreeSpace getting stuck while another model was unloading. Fixes #7606 Fixes #8178 Fixes #8969 Fixes #9617 Fixes #10119
GiteaMirror added the pull-request label 2026-04-13 00:22:11 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#13255