scsi_dh_alua: move optimize_stpg evaluation
authorHannes Reinecke <hare@suse.de>
Fri, 19 Feb 2016 08:17:08 +0000 (09:17 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 24 Feb 2016 02:27:02 +0000 (21:27 -0500)
commitaa90f49036a6a9dd917c5f571497a28e6a6e5bcc
tree048686e19646ac065795e9c2fe445ff7eaf8b587
parent28261402ddae5e6753fc6e25fae9fe492b869898
scsi_dh_alua: move optimize_stpg evaluation

When the optimize_stpg module option is set we should just set it
once during port_group allocation. Doing so allows us to override
it later with device specific settings.

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