master - filter: enhance mpath detection
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=dc6dea40331687b8740cc48833f4c7c42a2db1a1 Commit: dc6dea40331687b8740cc48833f4c7c42a2db1a1 Parent: 1eeb2fa3f687e71a541299383fe15bdb9e5a8088 Author: Zdenek Kabelac <[email protected]> AuthorDate: Wed Mar 13 13:02:09 2019 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Wed Mar 20 14:37:42 2019 +0100
filter: enhance mpath detection
Internal detection of SCSI device being in-use by DM mpath has been performed several times for each component device - this could be eventually racy - so instead when we do remember 1st. checked result for device being mpath and use it consistenly over the filter runtime.
--- WHATS_NEW | 1 + lib/filters/filter-mpath.c | 78 +++++++++++++++++++++++++++++++++++++------- 2 files changed, 67 insertions(+), 12 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.03.02 - =================================== + Query mpath device only once per command for its state. Use device INFO instead of STATUS when checking for mpath device uuid. Change default io_memory_size from 4 to 8 MiB. Add config setting io_memory_size to set bcache size.
lib/filters/filter-mpath.c +66 -12
128 lines not on this page · raw message