diff options
| author | Hannes Reinecke <[email protected]> | 2021-08-24 14:57:42 +0000 |
|---|---|---|
| committer | Christoph Hellwig <[email protected]> | 2021-09-06 07:59:02 +0000 |
| commit | e7d65803e2bb5bc739548b67a5fc72c626cf7e3b (patch) | |
| tree | 0543aa044f37dfc1ee05ea267ae79dc4e6bede54 /scripts/clang-tools/gen_compile_commands.py | |
| parent | nvme-multipath: set QUEUE_FLAG_NOWAIT (diff) | |
| download | kernel-e7d65803e2bb5bc739548b67a5fc72c626cf7e3b.tar.gz kernel-e7d65803e2bb5bc739548b67a5fc72c626cf7e3b.zip | |
nvme-multipath: revalidate paths during rescan
When triggering a rescan due to a namespace resize we will be
receiving AENs on every controller, triggering a rescan of all
attached namespaces. If multipath is active only the current path and
the ns_head disk will be updated, the other paths will still refer to
the old size until AENs for the remaining controllers are received.
If I/O comes in before that it might be routed to one of the old
paths, triggering an I/O failure with 'access beyond end of device'.
With this patch the old paths are skipped from multipath path
selection until the controller serving these paths has been rescanned.
Signed-off-by: Hannes Reinecke <[email protected]>
[dwagner: - introduce NVME_NS_READY flag instead of NVME_NS_INVALIDATE
- use 'revalidate' instead of 'invalidate' which
follows the zoned device code path.
- clear NVME_NS_READY before clearing current_path]
Signed-off-by: Daniel Wagner <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions
