All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Christie <michaelc@cs.wisc.edu>
To: David C Somayajulu <david.somayajulu@qlogic.com>
Cc: linux-scsi@vger.kernel.org, David Wagner <david.wagner@qlogic.com>
Subject: Re: [PATCH]qla4xxx:Add support for Async Message PDUs
Date: Thu, 24 Apr 2008 11:40:56 -0500	[thread overview]
Message-ID: <4810B818.8040301@cs.wisc.edu> (raw)
In-Reply-To: <1209052918.6212.4.camel@d5102avq18960.qlogic.org>

David C Somayajulu wrote:
> On Tue, 2008-04-22 at 11:20 -0500, Mike Christie wrote:
>> David C Somayajulu wrote:
>>> +int qla4xxx_conn_close_sess_logout(struct scsi_qla_host * ha,
>>> +	   uint16_t fw_ddb_index, uint16_t connection_id, uint16_t option)
>>> +{
>>> +	uint32_t mbox_cmd[MBOX_REG_COUNT];
>>> +	uint32_t mbox_sts[MBOX_REG_COUNT];
>>> +
>>> +	memset(&mbox_cmd, 0, sizeof(mbox_cmd));
>>> +	memset(&mbox_sts, 0, sizeof(mbox_sts));
>>> +
>>> +	mbox_cmd[0] = MBOX_CMD_CONN_CLOSE_SESS_LOGOUT;
>>> +	mbox_cmd[1] = fw_ddb_index;
>>> +	mbox_cmd[2] = connection_id;
>>> +	mbox_cmd[3] = LOGOUT_OPTION_RESET;
>>> +
>>> +	if (qla4xxx_mailbox_command(ha, MBOX_REG_COUNT, 2, &mbox_cmd[0],
>>> +		&mbox_sts[0]) != QLA_SUCCESS) {
>>> +		DEBUG2(printk("scsi%ld: %s: MBOX_CMD_CONN_CLOSE_SESS_LOGOUT "
>>> +			      "option %04x failed sts %04X %04X",
>>> +			      ha->host_no, __func__,
>>> +			      option, mbox_sts[0], mbox_sts[1]));
>>> +		if (mbox_sts[0] == 0x4005)
>>> +			DEBUG2(printk("%s reason %04X\n", __func__,
>>> +				      mbox_sts[1]));
>>> +	}
>>> +	return QLA_SUCCESS;
>>
>> Does this logout function logout a session and stop it from being logged 
>> back in, or does it logout the session then the firmware tries to log 
>> back in?
> Once the session is logged out, it stays in that state till the user
> initiates a login. The firmware does not automatically try to login
> again.

I think we want to login in this case. Did you guys test with this 
Equalogic boxes, or what boxes did you try that send a logout request 
and always do not want you to relogin?

EQL boxes have that magic target load balancing, where if they detect a 
problem the box will send the async logout request. It then expects the 
initiator to try a relogin, and at that time it will use the login 
redirect feature to send us to a new portal.

  reply	other threads:[~2008-04-24 16:41 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-18 20:44 [PATCH]qla4xxx:Add support for Async Message PDUs David C Somayajulu
2008-04-22 16:20 ` Mike Christie
2008-04-24 16:01   ` David C Somayajulu
2008-04-24 16:40     ` Mike Christie [this message]
2008-04-24 19:42       ` David C Somayajulu
2008-04-25 19:23       ` David C Somayajulu
2008-04-26 16:42         ` Mike Christie
2008-04-28 15:39           ` David C Somayajulu
2008-04-30 18:35           ` [PATCH]qla4xxx:Add support for Async Message PDUs [REPOST with fixes] David C Somayajulu
2008-04-30 19:23             ` Mike Christie
2008-04-30 19:36               ` Mike Christie
2008-05-01  0:36                 ` David C Somayajulu
2008-05-01 14:59                   ` Mike Christie

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=4810B818.8040301@cs.wisc.edu \
    --to=michaelc@cs.wisc.edu \
    --cc=david.somayajulu@qlogic.com \
    --cc=david.wagner@qlogic.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.