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

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
......@@ -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++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment