aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_attr.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-04-30 16:16:38 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-04-30 16:16:38 -0400
commit5aa1c98862d3f365d9cf6d0833d5dc127d2a76e7 (patch)
tree89cbf0b67634ecc43a863a6ca058ff749df3cce7 /drivers/scsi/lpfc/lpfc_attr.c
parent6da6dc2380c3cfe8d6b59d7c3c55fdd7a521fe6c (diff)
parent9e45dd73234af9a59613dc2989dcc2df2dab847f (diff)
Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Pull first round of SCSI updates from James "Jej B" Bottomley: "The patch set is mostly driver updates (qla4, qla2 [ISF support updates], lpfc, aacraid [dual firmware image support]) and a few bug fixes" * tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (47 commits) [SCSI] iscsi_tcp: support PF_MEMALLOC/__GFP_MEMALLOC [SCSI] libiscsi: avoid unnecessary multiple NULL assignments [SCSI] qla4xxx: Update driver version to 5.03.00-k8 [SCSI] qla4xxx: Added print statements to display AENs [SCSI] qla4xxx: Use correct value for max flash node entries [SCSI] qla4xxx: Restrict logout from boot target session using session id [SCSI] qla4xxx: Use correct flash ddb offset for ISP40XX [SCSI] isci: add CONFIG_PM_SLEEP to suspend/resume functions [SCSI] scsi_dh_alua: Add module parameter to allow failover to non preferred path without STPG [SCSI] qla2xxx: Update the driver version to 8.05.00.03-k. [SCSI] qla2xxx: Obtain loopback iteration count from bsg request. [SCSI] qla2xxx: Add clarifying printk to thermal access fail cases. [SCSI] qla2xxx: Remove duplicated include form qla_isr.c [SCSI] qla2xxx: Enhancements to support ISPFx00. [SCSI] qla4xxx: Update driver version to 5.03.00-k7 [SCSI] qla4xxx: Replace dev type macros with generic portal type macros [SCSI] scsi_transport_iscsi: Declare portal type string macros for generic use [SCSI] qla4xxx: Add flash node mgmt support [SCSI] libiscsi: export function iscsi_switch_str_param [SCSI] scsi_transport_iscsi: Add flash node mgmt support ...
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_attr.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_attr.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c
index a364cae9e984..9290713af253 100644
--- a/drivers/scsi/lpfc/lpfc_attr.c
+++ b/drivers/scsi/lpfc/lpfc_attr.c
@@ -692,7 +692,7 @@ lpfc_do_offline(struct lpfc_hba *phba, uint32_t type)
692 */ 692 */
693 for (i = 0; i < psli->num_rings; i++) { 693 for (i = 0; i < psli->num_rings; i++) {
694 pring = &psli->ring[i]; 694 pring = &psli->ring[i];
695 while (pring->txcmplq_cnt) { 695 while (!list_empty(&pring->txcmplq)) {
696 msleep(10); 696 msleep(10);
697 if (cnt++ > 500) { /* 5 secs */ 697 if (cnt++ > 500) { /* 5 secs */
698 lpfc_printf_log(phba, 698 lpfc_printf_log(phba,
@@ -2302,11 +2302,17 @@ static DEVICE_ATTR(lpfc_enable_npiv, S_IRUGO, lpfc_enable_npiv_show, NULL);
2302LPFC_ATTR_R(fcf_failover_policy, 1, 1, 2, 2302LPFC_ATTR_R(fcf_failover_policy, 1, 1, 2,
2303 "FCF Fast failover=1 Priority failover=2"); 2303 "FCF Fast failover=1 Priority failover=2");
2304 2304
2305int lpfc_enable_rrq; 2305int lpfc_enable_rrq = 2;
2306module_param(lpfc_enable_rrq, int, S_IRUGO); 2306module_param(lpfc_enable_rrq, int, S_IRUGO);
2307MODULE_PARM_DESC(lpfc_enable_rrq, "Enable RRQ functionality"); 2307MODULE_PARM_DESC(lpfc_enable_rrq, "Enable RRQ functionality");
2308lpfc_param_show(enable_rrq); 2308lpfc_param_show(enable_rrq);
2309lpfc_param_init(enable_rrq, 0, 0, 1); 2309/*
2310# lpfc_enable_rrq: Track XRI/OXID reuse after IO failures
2311# 0x0 = disabled, XRI/OXID use not tracked.
2312# 0x1 = XRI/OXID reuse is timed with ratov, RRQ sent.
2313# 0x2 = XRI/OXID reuse is timed with ratov, No RRQ sent.
2314*/
2315lpfc_param_init(enable_rrq, 2, 0, 2);
2310static DEVICE_ATTR(lpfc_enable_rrq, S_IRUGO, lpfc_enable_rrq_show, NULL); 2316static DEVICE_ATTR(lpfc_enable_rrq, S_IRUGO, lpfc_enable_rrq_show, NULL);
2311 2317
2312/* 2318/*