-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nvme_driver: add a sequence number to high cid bits (#186)
Due to its use of a slab for tracking pending commands, the NVMe driver aggressively reuses cids. This sometimes makes debugging difficult, especially when correlating logs across multiple sources. It also increases the chance that a NVMe device or driver bug will cause us to incorrectly complete an in-flight IO. To resolve this, use the high bits of the CID as a sequence number. There are six unused bits, which is enough to at least get some variability.
- Loading branch information
Showing
2 changed files
with
78 additions
and
12 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