dm writecache: reject asynchronous pmem devices
authorMichal Suchanek <msuchanek@suse.de>
Tue, 30 Jun 2020 15:49:24 +0000 (17:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Jul 2020 06:16:47 +0000 (08:16 +0200)
commit299ffecbd5305d2806b284e380921e9454ebe8a6
tree153dcf41c9e1074425c7b4a8b2d3f545011f3e77
parent49a7ac29f6a0c3360f521ab2162dc2663f3b40a2
dm writecache: reject asynchronous pmem devices

commit a46624580376a3a0beb218d94cbc7f258696e29f upstream.

DM writecache does not handle asynchronous pmem. Reject it when
supplied as cache.

Link: https://lore.kernel.org/linux-nvdimm/87lfk5hahc.fsf@linux.ibm.com/
Fixes: 6e84200c0a29 ("virtio-pmem: Add virtio pmem driver")
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Acked-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org # 5.3+
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm-writecache.c