summaryrefslogtreecommitdiffstats
path: root/drivers/virtio/Kconfig
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2022-06-28 16:34:30 +0800
committerMichael S. Tsirkin <mst@redhat.com>2022-08-11 04:06:37 -0400
commit5d66322b2b23507e9907a68e9c504181ffccd62f (patch)
tree9e6271c829721c60756fd8ac7c731c3eedd1493c /drivers/virtio/Kconfig
parent020e1aede7ee31d8b0e24a46ee364c7bb0939f02 (diff)
downloadlinux-5d66322b2b23507e9907a68e9c504181ffccd62f.tar.bz2
virtio_pmem: set device ready in probe()
The NVDIMM region could be available before the virtio_device_ready() that is called by virtio_dev_probe(). This means the driver tries to use device before DRIVER_OK which violates the spec, fixing this by set device ready before the nvdimm_pmem_region_create(). Note that this means the virtio_pmem_host_ack() could be triggered before the creation of the nd region, this is safe since the pmem_lock has been initialized and whether or not any available buffer is added before is validated by virtio_pmem_host_ack(). Fixes 6e84200c0a29 ("virtio-pmem: Add virtio pmem driver") Acked-by: Pankaj Gupta <pankaj.gupta@amd.com> Signed-off-by: Jason Wang <jasowang@redhat.com> Message-Id: <20220628083430.61856-2-jasowang@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/virtio/Kconfig')
0 files changed, 0 insertions, 0 deletions