-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(nexus): allow re-adding child removed by AEN
Add a destroying flag to NexusChild and only set it in destroy() so a nexus child destroyed via the normal close() path actually removes the bdev. This allows a remove via e.g. an NVMe async event notification to only mark the child as faulted, which does remove it from the I/O path, and allows a subsequent normal destroy of a child to remove the bdev. Previously it would have set NexusChild::bdev to None without destroying the bdev, which leaks it. This requires that the shutdown process destroys nexuses first so that it then destroys each child and its bdev, in that order, as the remove event from SPDK as part of shutdown would not destroy the bdev, which would result in the process hanging.
- Loading branch information
1 parent
c971b1f
commit 3ae2903
Showing
5 changed files
with
112 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters