[PATCH 5.10 466/518] virtio_pmem: Check device status before requesting flush