[PATCH 6.1 716/798] virtio_pmem: Check device status before requesting flush