dm writecache: skip writecache_wait for pmem mode
authorHuaisheng Ye <yehs1@lenovo.com>
Mon, 2 Sep 2019 10:04:50 +0000 (18:04 +0800)
committerMike Snitzer <snitzer@redhat.com>
Thu, 5 Sep 2019 17:22:05 +0000 (13:22 -0400)
commit6d1959138c8bdaf69f1116c86c77e6733db6ab34
tree815b3f36d5696680afc258714a210b5966594bc6
parentfb16c799b8dca78b847ab183e8aa70e34cbf21bc
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: Doris Yu <tyu1@lenovo.com>
Signed-off-by: Huaisheng Ye <yehs1@lenovo.com>
Acked-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-writecache.c