[PATCH 5.15 618/691] virtio_pmem: Check device status before requesting flush