mirror of
https://github.com/torvalds/linux.git
synced 2024-12-14 15:13:52 +00:00
megaraid_sas: Expose TAPE drives unconditionally
Expose non-disk (TAPE drive, CD-ROM) unconditionally. Cc: <stable@vger.kernel.org> Signed-off-by: Sumit Saxena <sumit.saxena@avagotech.com> Signed-off-by: Kashyap Desai <kashyap.desai@avagotech.com> Reviewed-by: Tomas Henzl <thenzl@redhat.com> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
609fb07b2b
commit
0d5b47a724
@ -1743,8 +1743,9 @@ static int megasas_slave_alloc(struct scsi_device *sdev)
|
||||
pd_index =
|
||||
(sdev->channel * MEGASAS_MAX_DEV_PER_CHANNEL) +
|
||||
sdev->id;
|
||||
if (instance->pd_list[pd_index].driveState ==
|
||||
MR_PD_STATE_SYSTEM) {
|
||||
if ((instance->pd_list[pd_index].driveState ==
|
||||
MR_PD_STATE_SYSTEM) ||
|
||||
(instance->pd_list[pd_index].driveType != TYPE_DISK)) {
|
||||
return 0;
|
||||
}
|
||||
return -ENXIO;
|
||||
|
Loading…
Reference in New Issue
Block a user