]> www.infradead.org Git - users/hch/block.git/commit
scsi: mpi3mr: Block devices are not removed even when VDs are offlined
authorRanjan Kumar <ranjan.kumar@broadcom.com>
Wed, 13 Mar 2024 10:07:40 +0000 (15:37 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 25 Mar 2024 22:14:32 +0000 (18:14 -0400)
commitdd896a6b0a0d3939c1ba070f46bec42cbb7573eb
tree1f94e3c6179e6e78873c19ffa6c4f6433207c616
parent4cece764965020c22cff7665b18a012006359095
scsi: mpi3mr: Block devices are not removed even when VDs are offlined

The driver did not remove the virtual disk that was exposed as hidden and
offline after the controller was reset.

Drive is removed from OS when firmware sends "device added" event with
hidden bit set or access status indicating inability to accept I/Os.

Signed-off-by: Ranjan Kumar <ranjan.kumar@broadcom.com>
Signed-off-by: Sathya Prakash <sathya.prakash@broadcom.com>
Link: https://lore.kernel.org/r/20240313100746.128951-2-ranjan.kumar@broadcom.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpi3mr/mpi3mr.h
drivers/scsi/mpi3mr/mpi3mr_os.c