This patch changes to always to firstly traverse device path from device
mapper to SCSI generic node, and if find any mapping between them and
try to update the cached device mapper. This is avoid to always use the
stale device mapping info rather than miss to explore the updated device
mapping.
This patch changes to always to firstly traverse device path from device mapper to SCSI generic node, and if find any mapping between them and try to update the cached device mapper. This is avoid to always use the stale device mapping info rather than miss to explore the updated device mapping.
Signed-off-by: Leo Yan leo.yan@linaro.org