]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] scsi_dh_alua: Optimize the STPG command
authorMoger, Babu <Babu.Moger@netapp.com>
Tue, 27 Mar 2012 20:56:20 +0000 (20:56 +0000)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 23 Apr 2012 18:28:18 +0000 (19:28 +0100)
commitcf91f3b225a61041fd3ef0db351ea5dc8d15d3ba
treeb2b189795687b7cfd179351d4e31e05c501ff817
parent2e063bf3334723b137e13f9fa0f18c78227159bc
[SCSI] scsi_dh_alua: Optimize the STPG command

This patch optimizes the set target port group(STPG) command. During our
testing, we found that it is not optimal to send stpg command every time
the path group switch happens. This patch uses PREF (preferred target port)
bit with combination of flags passed by multipath user level tool to
optimize this behaviour. If PREF bit is set then it issues a STPG command,
otherwise it will let implicit transfer take place.

By default there is no change in the behaviour. User tool needs to pass the
parameter to make this change take effect. Patch has been tested on NetApp
E series storage.

Signed-off-by: Babu Moger <babu.moger@netapp.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/device_handler/scsi_dh_alua.c