From: Mike Snitzer <snitzer@redhat.com>
To: James Bottomley <James.Bottomley@suse.de>
Cc: linux-scsi@vger.kernel.org,
Joseph Gruher <joseph.r.gruher@intel.com>,
Ilgu Hong <ilgu.hong@promise.com>,
Mike Snitzer <snitzer@redhat.com>
Subject: [PATCH 1/5] [SCSI] scsi_dh_alua: fix submit_stpg return
Date: Wed, 5 Jan 2011 16:00:20 -0500 [thread overview]
Message-ID: <1294261224-12599-2-git-send-email-snitzer@redhat.com> (raw)
In-Reply-To: <1294261224-12599-1-git-send-email-snitzer@redhat.com>
From: Joseph Gruher <joseph.r.gruher@intel.com>
submit_stpg() will always return failure so alua_activate() will report
failure via dm-multipath callback function. Even though the stpg fired
successfuly dm-multipath does not know and always fails to change the
valid path.
By returning SCSI_DH_OK we're now skipping alua_activate()'s call to
activate_complete 'fn'. But this is fine because stpg_endio() will call
it via h->callback_fn().
Signed-off-by: Joseph Gruher <joseph.r.gruher@intel.com>
Signed-off-by: Ilgu Hong <ilgu.hong@promise.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
---
drivers/scsi/device_handler/scsi_dh_alua.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/scsi/device_handler/scsi_dh_alua.c b/drivers/scsi/device_handler/scsi_dh_alua.c
index 6b72932..afb1d05 100644
--- a/drivers/scsi/device_handler/scsi_dh_alua.c
+++ b/drivers/scsi/device_handler/scsi_dh_alua.c
@@ -303,7 +303,6 @@ done:
static unsigned submit_stpg(struct alua_dh_data *h)
{
struct request *rq;
- int err = SCSI_DH_RES_TEMP_UNAVAIL;
int stpg_len = 8;
struct scsi_device *sdev = h->sdev;
@@ -332,7 +331,7 @@ static unsigned submit_stpg(struct alua_dh_data *h)
rq->end_io_data = h;
blk_execute_rq_nowait(rq->q, NULL, rq, 1, stpg_endio);
- return err;
+ return SCSI_DH_OK;
}
/*
--
1.7.3.4
next prev parent reply other threads:[~2011-01-05 21:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-05 21:00 [PATCH 0/5] [SCSI] scsi_dh_alua: fixes and new dev support Mike Snitzer
2011-01-05 21:00 ` Mike Snitzer [this message]
2011-01-05 21:00 ` [PATCH 2/5] [SCSI] scsi_dh_alua: fix deadlock in stpg_endio Mike Snitzer
2011-01-05 21:00 ` [PATCH 3/5] [SCSI] scsi_dh_alua: fix stpg_endio group state reporting Mike Snitzer
2011-01-05 21:00 ` [PATCH 4/5] [SCSI] scsi_dh_alua: Add Promise VTrak to dev list Mike Snitzer
2011-01-05 21:00 ` [PATCH 5/5] [SCSI] scsi_dh_alua: add scalable ONTAP lun " Mike Snitzer
2011-01-05 21:15 ` [PATCH 0/5] [SCSI] scsi_dh_alua: fixes and new dev support Mike Snitzer
2011-01-06 0:37 ` Nicholas A. Bellinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1294261224-12599-2-git-send-email-snitzer@redhat.com \
--to=snitzer@redhat.com \
--cc=James.Bottomley@suse.de \
--cc=ilgu.hong@promise.com \
--cc=joseph.r.gruher@intel.com \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).