]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: only call synchronize_srcu when clearing current path
authorDaniel Wagner <dwagner@suse.de>
Wed, 1 Sep 2021 09:25:24 +0000 (11:25 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 6 Sep 2021 08:03:11 +0000 (10:03 +0200)
commite9ebfc02f72bea4f377dc9e88d790fa32ce88fc5
treed0f1e9048e46c2f5f04232a7e7f8ebe8737a4eb3
parent5fbed9ab74e9ffaa9ae97dea1ac3dd4bcbfe8497
nvme: only call synchronize_srcu when clearing current path

The function nmve_mpath_clear_current_path returns true if the current
path has changed. In this case we have to wait for all concurrent
submissions to finish. But if we didn't change the current path, there
is no point in waiting for another RCU period to finish.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c