public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Mike Christie <michaelc@cs.wisc.edu>
To: Jayamohan Kalickal <jayamohank@serverengines.com>
Cc: linux-scsi@vger.kernel.org, James.Bottomley@suse.de
Subject: Re: [PATCH 1/7] be2iscsi: Modification of  iscsi_eh_target_reset
Date: Wed, 17 Feb 2010 22:17:23 -0600	[thread overview]
Message-ID: <4B7CBF53.5020401@cs.wisc.edu> (raw)
In-Reply-To: <20100218014705.GA31130@serverengines.com>

On 02/17/2010 07:47 PM, Jayamohan Kallickal wrote:
> @@ -2449,7 +2449,6 @@ int iscsi_eh_target_reset(struct scsi_cmnd *sc)
>   		break;
>   	case TMF_TIMEDOUT:
>   		spin_unlock_bh(&session->lock);
> -		iscsi_conn_failure(conn, ISCSI_ERR_CONN_FAILED);

It is harmless to keep this, right? Just keep it for now so the reset 
handler code behaves the same for all TMF_TIMEDOUT cases.


>   		goto done;
>   	default:
>   		conn->tmf_state = TMF_INITIAL;
> @@ -2476,12 +2475,27 @@ done:
>   	ISCSI_DBG_EH(session, "tgt %s reset result = %s\n", session->targetname,
>   		     rc == SUCCESS ? "SUCCESS" : "FAILED");
>   	mutex_unlock(&session->eh_mutex);
> +	return rc;
> +}
> +EXPORT_SYMBOL_GPL(iscsi_eh_target_reset);
> +

You can remove the export symbol since no one is using it now, and 
remove the libiscsi.h iscsi_eh_target_reset code too.

> +/**
> + * iscsi_eh_recover_target - reset target and possibly the session
> + * @sc: scsi command
> + *
> + * This will attempt to send a warm target reset. If that fails,
> + * we will escalate to ERL0 session recovery.
> + */
> +int iscsi_eh_recover_target(struct scsi_cmnd *sc)
> +{
> +	int rc;
>
> +	rc = iscsi_eh_target_reset(sc);	

Some extra whitespace at the end of that line. You can do a git am 
--wihtespace=fix on your patches before you send and that will fix them 
up for you (just remember to respit the new ones out and send them).

      reply	other threads:[~2010-02-18  4:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-18  1:47 [PATCH 1/7] be2iscsi: Modification of iscsi_eh_target_reset Jayamohan Kallickal
2010-02-18  4:17 ` Mike Christie [this message]

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=4B7CBF53.5020401@cs.wisc.edu \
    --to=michaelc@cs.wisc.edu \
    --cc=James.Bottomley@suse.de \
    --cc=jayamohank@serverengines.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