android_kernel_xiaomi_sm8450/drivers/nvdimm
Philip Chen 4ce662fe4b 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-10-17 15:08:32 +02:00
..
badrange.c
blk.c
btt_devs.c
btt.c
btt.h
bus.c nvdimm: Fix badblocks clear off-by-one error 2022-07-07 17:52:15 +02:00
claim.c
core.c nvdimm: Fix firmware activation deadlock scenarios 2022-06-09 10:21:15 +02:00
dax_devs.c
dimm_devs.c
dimm.c
e820.c
Kconfig
label.c
label.h
Makefile
namespace_devs.c
nd_virtio.c virtio_pmem: Check device status before requesting flush 2024-10-17 15:08:32 +02:00
nd-core.h
nd.h
of_pmem.c libnvdimm/of_pmem: Use devm_kstrdup instead of kstrdup and check its return value 2023-11-20 11:06:50 +01:00
pfn_devs.c
pfn.h
pmem.c
pmem.h
region_devs.c nd_btt: Make BTT lanes preemptible 2023-11-20 11:06:50 +01:00
region.c
security.c nvdimm: Allow overwrite in the presence of disabled dimms 2022-06-09 10:21:15 +02:00
virtio_pmem.c
virtio_pmem.h