diff options
author | Christoph Hellwig <hch@lst.de> | 2022-07-19 11:18:23 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-08-02 17:22:44 -0600 |
commit | 12a6caf273240ae42842de8cc05feaa86e582d61 (patch) | |
tree | 46a857e07a65f026f4f30d4d69475891349a0e5c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 16648bac862fd9c6490a465533345fbeaa6466e0 (diff) |
md: only delete entries from all_mddevs when the disk is freed
This ensures device names don't get prematurely reused. Instead add a
deleted flag to skip already deleted devices in mddev_get and other
places that only want to see live mddevs.
Reported-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Song Liu <song@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions