scsi: mpt3sas: Suppress a warning in debug kernel
authorTomas Henzl <thenzl@redhat.com>
Thu, 19 Oct 2023 15:37:06 +0000 (17:37 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 15 Nov 2023 15:50:31 +0000 (10:50 -0500)
commit6a965ee1892a7a44f6d8f4a0b9fb5f775a8b4ccb
tree70594604f4f063a19fe0376d52b33c93e6fcb00a
parent4f6dd2a4bf378bc4d169296739ea7d6972c0d858
scsi: mpt3sas: Suppress a warning in debug kernel

The mpt3sas_ctl_exit() should be called after communication with the
controller stops but currently it may cause false warnings about not
released memory. Fix this by letting mpt3sas_ctl_exit() handle misc driver
release per driver and release DMA in mpt3sas_ctl_release() per ioc.

Signed-off-by: Tomas Henzl <thenzl@redhat.com>
Link: https://lore.kernel.org/r/20231019153706.7967-1-thenzl@redhat.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpt3sas/mpt3sas_base.h
drivers/scsi/mpt3sas/mpt3sas_ctl.c
drivers/scsi/mpt3sas/mpt3sas_scsih.c