want nvme namespace management mutex
The nvme driver really should have a namespace management mutex serializing any changes to namespace state. Right now this will only be used for blkdev attach and detach, but at a lite time it will also be required for supporting namespace creation and deletion.
This code was taken from Paul Winders namespace management wad, and it includes a fair bit of refactoring and cleanup of the namespace initialization and attachment.
Updated by Hans Rosenfeld about 1 month ago
Testing: Apart from this having been in Tintri's code for a few months now, I have verified that operations changing namespace state still work as expected. Further changes I'm currently still working on depend on this change, so I'm fairly confident it all works as intended.
Updated by Electric Monk about 1 month ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit 34331de35882eb41acdf4f0d2065b5e12d083e82 Author: Hans Rosenfeld <email@example.com> Date: 2022-04-20T17:42:38.000Z 14531 want nvme namespace management mutex Contributed by: Paul Winder <firstname.lastname@example.org> Reviewed by: Andrew Giles <email@example.com> Reviewed by: Guy Morrogh <firstname.lastname@example.org> Reviewed by: Ben Jameson <email@example.com> Reviewed by: Robert Mustacchi <firstname.lastname@example.org> Approved by: Dan McDonald <email@example.com>