kernel_samsung_a53x/drivers/nvdimm
Philip Chen 0da7dd9adf virtio_pmem: Check device status before requesting flush
[ Upstream commit e25fbcd97cf52c3c9824d44b5c56c19673c3dd50 ]

If a pmem device is in a bad status, the driver side could wait for
host ack forever in virtio_pmem_flush(), causing the system to hang.

So add a status check in the beginning of virtio_pmem_flush() to return
early if the device is not activated.

Signed-off-by: Philip Chen <philipchen@chromium.org>
Message-Id: <20240826215313.2673566-1-philipchen@chromium.org>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Pankaj Gupta <pankaj.gupta.linux@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:21:50 +01:00
..
badrange.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
blk.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btt.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btt_devs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bus.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
claim.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dax_devs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dimm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dimm_devs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
e820.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
label.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
label.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
namespace_devs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nd-core.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nd.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nd_virtio.c virtio_pmem: Check device status before requesting flush 2024-11-23 23:21:50 +01:00
of_pmem.c libnvdimm/of_pmem: Use devm_kstrdup instead of kstrdup and check its return value 2024-11-18 11:43:02 +01:00
pfn.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfn_devs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pmem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pmem.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
region.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
region_devs.c nd_btt: Make BTT lanes preemptible 2024-11-18 11:43:03 +01:00
security.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
virtio_pmem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
virtio_pmem.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00