Re: [PATCHv3 16/24] scsi_dh_alua: Add new blacklist flag 'BLIST_SYNC_ALUA'

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

 



> @@ -335,6 +336,10 @@ static int alua_check_vpd(struct scsi_device *sdev, struct alua_dh_data *h,
>  	int rel_port = -1, group_id;
>  	struct alua_port_group *pg, *old_pg = NULL;
>  	bool pg_updated = false;
> +	unsigned int bflags = scsi_get_device_flags_keyed(sdev,
> +							  &sdev->inquiry[8],
> +							  &sdev->inquiry[16],
> +							  SCSI_DEVINFO_GLOBAL);

I see not reason to use scsi_get_device_flags_keyed over
scsi_get_device_flags here.  Also:

 - why can't we just set a flag in the sdev like for most other
   blacklist item (in the long run I plan to simply mirror all blist
   flags into the sdev anyway).
 - please add the affected arrays to scsi_static_device_list
--
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