Sumit Saxena 4094981db7 scsi: mpi3mr: Rework mrioc->bsg_device model to fix warnings
During driver unload, mrioc->bsg_device reference count becomes
negative. Also, as reported in [1], the driver's bsg_device model had few
more bugs. Fix all these up.

[1] https://marc.info/?l=linux-scsi&m=165183971411991&w=2

Link: https://lore.kernel.org/r/20220526170157.58274-1-sumit.saxena@broadcom.com
Fixes: 4268fa751365 ("scsi: mpi3mr: Add bsg device support")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Tested-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Sumit Saxena <sumit.saxena@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2022-06-01 22:23:09 -04:00
..
2022-04-11 22:09:35 -04:00
2022-04-11 22:09:35 -04:00
2022-05-23 23:24:09 -04:00
2021-11-05 08:42:02 -07:00
2022-05-23 23:24:10 -04:00
2022-05-23 23:24:10 -04:00
2022-02-22 21:11:02 -05:00
2022-01-14 14:37:34 +01:00
2022-05-16 21:32:16 -04:00
2022-02-22 21:11:02 -05:00
2022-01-25 00:09:41 -05:00
2022-05-23 23:24:10 -04:00
2022-02-22 21:11:02 -05:00
2022-01-22 08:33:37 +02:00
2022-05-02 16:59:11 -04:00
2022-02-02 07:49:59 -07:00
2022-04-25 23:23:05 -04:00
2022-03-24 19:37:53 -07:00
2021-12-22 23:41:13 -05:00
2022-03-24 19:37:53 -07:00