Re: [PATCH v4 01/43] hpsa: add masked physical devices into h->dev[] array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/16/2015 03:46 PM, Don Brace wrote:
> From: Stephen Cameron <stephenmcameron@xxxxxxxxx>
> 
> Cache the ioaccel handle so that when we need to abort commands sent
> down the ioaccel2 path, we can look up the LUN ID in h->dev[] instead of
> having to do I/O to the controller.
> 
> Add a field to elements in h->dev[] to keep track of how the device is exposed
> to the SCSI mid layer: Not at all, without an upper level driver
> (no_uld_attach) or normally exposed.
> 
> Since masked physical devices are now present in h->dev[] array
> it would be perfectly possible to do
> 
> 	echo scsi add-single-device 2 2 0 0 > /proc/scsi/scsi
> 
> and bring them online.  This was previously not allowed for masked
> physical devices.
> 
> Ensure that the mapping of physical disks to logical drives gets updated in a
> consistent way when a RAID migration occurs and is not touched until updates
> to it are complete.
> 
> now instead of doing CISS_REPORT_PHYSICAL to get the LUNID for
> the physical disk in hpsa_get_pdisk_of_ioaccel2(), just get
> it out of h->dev[] where we already have it cached.
> 
> do not touch phys_disk[] for ioaccel enabled logical drives during rescan
> 
> Reviewed-by: Scott Teel <scott.teel@xxxxxxxx>
> Reviewed-by: Kevin Barnett <kevin.barnett@xxxxxxxx>
> Signed-off-by: Don Brace <don.brace@xxxxxxxx>

Reviewed-by: Hannes Reinecke <hare@xxxxxxx>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		               zSeries & Storage
hare@xxxxxxx			               +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux