/* For the prep_fn to work correctly we have to initialize the ALUA state for the device.  */
static int alua_initialize(struct scsi_device *sdev, struct alua_dh_data *h)
/* For the prep_fn to work correctly we have to initialize the ALUA state for the device.  */
static int alua_initialize(struct scsi_device *sdev, struct alua_dh_data *h)
{
	int err;
	err = alua_std_inquiry(sdev, h);
	if (err != SCSI_DH_OK)
		goto out;
	err = alua_vpd_inquiry(sdev, h);
	if (err != SCSI_DH_OK)
		goto out;
	err = alua_rtpg(sdev, h);
	if (err != SCSI_DH_OK)
		goto out;
out:
	return err;
}