android_kernel_motorola_sm6375/drivers/nvdimm
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Philip Chen 59ac565c62 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 <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Acked-by: Pankaj Gupta <[email protected]
Signed-off-by: Sasha Levin <[email protected]>
2024-11-08 16:20:44 +01:00
..
badrange.c
blk.c
btt.c
btt.h
btt_devs.c
bus.c
claim.c
core.c
dax_devs.c
dimm.c
dimm_devs.c
e820.c
Kconfig
label.c
label.h
Makefile
namespace_devs.c
nd-core.h
nd.h
nd_virtio.c virtio_pmem: Check device status before requesting flush 2024-11-08 16:20:44 +01:00
of_pmem.c
pfn.h
pfn_devs.c
pmem.c
pmem.h
region.c
region_devs.c
security.c
virtio_pmem.c
virtio_pmem.h