[PATCH 5.4 317/462] virtio_pmem: Check device status before requesting flush