Sreekanth Reddy
d245874049
scsi: mpt3sas: Fix for block device of raid exists even after deleting raid disk
...
commit 6d3a56ed09 upstream.
While merging mpt3sas & mpt2sas code, we added the is_warpdrive check
condition on the wrong line
---------------------------------------------------------------------------
scsih_target_alloc(struct scsi_target *starget)
sas_target_priv_data->handle = raid_device->handle;
sas_target_priv_data->sas_address = raid_device->wwid;
sas_target_priv_data->flags |= MPT_TARGET_FLAGS_VOLUME;
- raid_device->starget = starget;
+ sas_target_priv_data->raid_device = raid_device;
+ if (ioc->is_warpdrive)
+ raid_device->starget = starget;
}
spin_unlock_irqrestore(&ioc->raid_device_lock, flags);
return 0;
------------------------------------------------------------------------------
That check should be for the line sas_target_priv_data->raid_device =
raid_device;
Due to above hunk, we are not initializing raid_device's starget for
raid volumes, and so during raid disk deletion driver is not calling
scsi_remove_target() API as driver observes starget field of
raid_device's structure as NULL.
Signed-off-by: Sreekanth Reddy <Sreekanth.Reddy@broadcom.com >
Fixes: 7786ab6aff ("mpt3sas: Ported WarpDrive product SSS6200 support")
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-11-18 10:48:36 +01:00
..
2016-09-07 08:32:43 +02:00
2016-04-12 09:08:39 -07:00
2015-11-12 07:06:18 -05:00
2016-11-10 16:36:35 +01:00
2015-05-31 18:06:28 -07:00
2016-04-12 09:08:39 -07:00
2015-11-09 17:11:57 -08:00
2015-11-09 17:32:34 -08:00
2015-06-02 17:15:24 -07:00
2015-11-09 17:11:57 -08:00
2015-11-09 15:11:24 -08:00
2016-09-15 08:27:50 +02:00
2016-05-04 14:48:51 -07:00
2015-11-09 17:11:57 -08:00
2015-11-09 17:11:57 -08:00
2016-10-07 15:23:45 +02:00
2016-10-22 12:26:56 +02:00
2015-11-12 07:06:18 -05:00
2015-11-09 17:15:52 -08:00
2015-03-24 17:08:29 -07:00
2016-09-15 08:27:48 +02:00
2016-11-15 07:46:40 +01:00
2016-11-18 10:48:36 +01:00
2015-12-03 09:32:33 -08:00
2015-04-14 09:50:27 -07:00
2015-05-31 18:06:28 -07:00
2015-11-12 07:06:18 -05:00
2016-11-18 10:48:35 +01:00
2015-11-13 20:35:54 -08:00
2015-11-13 20:35:54 -08:00
2014-11-24 14:45:27 +01:00
2015-11-12 07:06:18 -05:00
2015-10-07 10:24:48 -07:00
2015-04-27 10:10:19 -07:00
2015-04-27 10:04:39 -07:00
2015-04-27 10:04:39 -07:00
2015-04-27 10:05:55 -07:00
2015-04-27 10:05:55 -07:00
2016-07-27 09:47:39 -07:00
2015-08-07 15:03:42 +02:00
2014-10-20 16:21:33 +02:00
2014-10-20 16:21:33 +02:00
2015-12-03 09:32:33 -08:00
2015-05-31 18:06:28 -07:00
2015-05-31 18:06:28 -07:00
2015-04-09 18:08:31 -07:00
2015-05-31 18:06:28 -07:00
2015-05-31 18:06:28 -07:00
2015-04-17 10:13:56 -07:00
2015-03-09 10:45:26 -04:00
2015-03-09 07:18:14 -04:00
2015-05-31 18:06:28 -07:00
2015-05-31 18:06:28 -07:00
2015-02-02 09:57:45 -08:00
2014-10-20 16:21:33 +02:00
2015-04-14 09:50:27 -07:00
2016-09-15 08:27:54 +02:00
2015-02-02 09:57:46 -08:00
2014-11-20 09:11:11 +01:00
2015-07-31 13:31:10 +02:00
2014-07-17 22:07:37 +02:00
2014-11-20 09:11:10 +01:00
2014-11-20 09:11:10 +01:00
2015-02-02 09:57:45 -08:00
2014-11-24 14:45:27 +01:00
2015-11-09 17:11:57 -08:00
2014-11-24 16:13:16 +01:00
2015-05-31 18:06:28 -07:00
2015-11-09 16:32:14 -08:00
2015-03-09 10:45:26 -04:00
2014-11-20 09:11:10 +01:00
2015-02-02 09:57:45 -08:00
2014-11-24 20:01:40 +01:00
2015-12-03 09:32:33 -08:00
2015-11-09 12:39:28 -05:00
2016-10-28 03:01:33 -04:00
2015-11-09 12:39:28 -05:00
2015-08-12 13:14:57 -07:00
2015-08-12 13:14:57 -07:00
2015-05-31 18:06:28 -07:00
2015-02-02 09:57:46 -08:00
2015-05-31 18:06:28 -07:00
2016-08-10 11:49:29 +02:00
2015-11-09 19:32:41 -05:00
2015-06-02 17:24:54 -07:00
2014-11-24 14:45:27 +01:00
2014-04-11 16:15:36 -04:00
2014-10-20 16:21:33 +02:00
2015-12-03 09:32:33 -08:00
2015-09-17 07:25:02 -07:00
2015-05-31 18:06:28 -07:00
2014-10-20 16:21:33 +02:00
2015-03-09 07:18:14 -04:00
2015-11-11 19:50:11 -05:00
2015-08-26 07:23:04 -07:00
2015-03-23 14:29:40 +11:00
2014-10-20 16:21:33 +02:00
2015-11-11 20:45:23 -05:00
2014-11-24 14:45:27 +01:00
2014-07-17 22:07:35 +02:00
2015-05-31 18:06:28 -07:00
2015-03-09 10:45:26 -04:00
2014-11-20 09:11:20 +01:00
2015-05-31 18:06:28 -07:00
2014-11-24 20:01:28 +01:00
2014-11-20 09:11:10 +01:00
2014-11-20 09:11:10 +01:00
2015-11-12 07:06:18 -05:00
2015-05-31 18:06:28 -07:00
2015-05-31 18:06:28 -07:00
2016-05-18 17:06:52 -07:00
2015-05-31 18:06:28 -07:00
2015-05-31 18:06:28 -07:00
2016-04-12 09:09:05 -07:00
2016-11-10 16:36:35 +01:00
2016-08-10 11:49:29 +02:00
2015-10-27 15:03:31 +09:00
2016-07-27 09:47:39 -07:00
2014-11-12 11:16:12 +01:00
2016-06-24 10:18:16 -07:00
2015-02-04 08:00:24 -08:00
2014-11-12 11:16:05 +01:00
2014-04-24 13:44:54 -04:00
2015-12-10 12:24:44 -05:00
2015-10-27 11:22:37 +09:00
2015-02-02 09:57:46 -08:00
2016-10-28 03:01:31 -04:00
2014-06-06 16:08:16 -07:00
2016-08-16 09:30:48 +02:00
2015-02-02 09:57:46 -08:00
2015-04-10 07:40:32 -07:00
2015-09-02 12:22:54 -07:00
2015-09-06 11:13:41 -07:00
2015-08-07 14:28:45 +02:00
2015-07-14 13:20:09 -04:00
2015-11-09 17:11:57 -08:00
2014-11-12 11:15:54 +01:00
2015-10-21 14:42:38 -06:00
2016-10-28 03:01:33 -04:00
2016-10-28 03:01:33 -04:00
2015-12-11 11:05:57 -08:00
2016-04-12 09:08:38 -07:00
2014-10-20 16:21:33 +02:00
2014-10-20 16:21:33 +02:00
2015-01-20 19:43:24 +01:00
2014-07-17 22:07:39 +02:00
2016-02-25 12:01:16 -08:00
2014-11-12 11:15:57 +01:00
2015-12-03 09:32:33 -08:00
2015-06-02 08:03:25 -07:00
2015-11-09 17:42:19 -08:00
2016-04-12 09:08:39 -07:00
2014-05-28 12:16:28 +02:00
2015-03-09 07:18:14 -04:00
2014-11-20 09:11:15 +01:00
2015-08-10 23:07:05 -04:00
2014-10-20 16:21:33 +02:00
2015-05-31 18:06:28 -07:00
2014-11-20 09:11:10 +01:00
2014-11-20 09:11:10 +01:00
2014-11-24 14:45:27 +01:00
2015-07-23 13:07:04 -07:00
2014-11-24 14:45:28 +01:00
2014-09-24 11:52:09 -06:00
2015-02-02 09:57:46 -08:00
2015-08-07 14:28:45 +02:00
2015-05-31 18:06:28 -07:00
2015-02-02 09:57:45 -08:00
2015-09-08 18:03:49 +01:00