Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d195913 authored by Huaisheng Ye's avatar Huaisheng Ye Committed by Mike Snitzer
Browse files

dm writecache: skip writecache_wait for pmem mode



The array bio_in_progress[2] only have chance to be increased and
decreased with ssd mode. For pmem mode, they are not involved at all.
So skip writecache_wait_for_ios in writecache_flush for pmem.

Suggested-by: default avatarDoris Yu <tyu1@lenovo.com>
Signed-off-by: default avatarHuaisheng Ye <yehs1@lenovo.com>
Acked-by: default avatarMikulas Patocka <mpatocka@redhat.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent fb16c799
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -726,6 +726,7 @@ static void writecache_flush(struct dm_writecache *wc)
	}
	writecache_commit_flushed(wc);

	if (!WC_MODE_PMEM(wc))
		writecache_wait_for_ios(wc, WRITE);

	wc->seq_count++;