Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 367410
b: refs/heads/master
c: 7a3ad39
h: refs/heads/master
v: v3
  • Loading branch information
Stewart, Sean authored and James Bottomley committed Apr 11, 2013
1 parent ee18b41 commit 44266f5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 93f91dfa732eead8fbc938256b6883a93b847021
refs/heads/master: 7a3ad3920de780e3da1dacabe3c0abcd5b260655
7 changes: 7 additions & 0 deletions trunk/drivers/scsi/device_handler/scsi_dh_alua.c
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,10 @@ static int alua_set_params(struct scsi_device *sdev, const char *params)
return result;
}

static uint optimize_stpg;
module_param(optimize_stpg, uint, S_IRUGO|S_IWUSR);
MODULE_PARM_DESC(optimize_stpg, "Allow use of a non-optimized path, rather than sending a STPG, when implicit TPGS is supported (0=No,1=Yes). Default is 0.");

/*
* alua_activate - activate a path
* @sdev: device on the path to be activated
Expand All @@ -733,6 +737,9 @@ static int alua_activate(struct scsi_device *sdev,
if (err != SCSI_DH_OK)
goto out;

if (optimize_stpg)
h->flags |= ALUA_OPTIMIZE_STPG;

if (h->tpgs & TPGS_MODE_EXPLICIT) {
switch (h->state) {
case TPGS_STATE_NONOPTIMIZED:
Expand Down

0 comments on commit 44266f5

Please sign in to comment.