]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
scsi_dh_alua: simplify alua_initialize()
authorHannes Reinecke <hare@suse.de>
Fri, 19 Feb 2016 08:17:06 +0000 (09:17 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 24 Feb 2016 02:27:02 +0000 (21:27 -0500)
commita4253fde53fda56c2116a1cf8df9c93ef272eab4
treeccfe9911774dedb9fb95922b0c09b7af9055fd6f
parent0047220c6c3641eeaf0460fb1cc8bbb7f81bd47e
scsi_dh_alua: simplify alua_initialize()

Rework alua_check_vpd() to use scsi_vpd_get_tpg()
and move the port group selection into the function, too.
With that we can simplify alua_initialize() to just
call alua_check_tpgs() and alua_check_vpd();

Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/device_handler/scsi_dh_alua.c