linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/5] ibmvfc: Properly set cancel flags when cancelling abort
@ 2013-04-12 13:25 Brian King
  2013-04-16 20:24 ` Robert Jennings
  0 siblings, 1 reply; 2+ messages in thread
From: Brian King @ 2013-04-12 13:25 UTC (permalink / raw)
  To: rcjenn; +Cc: linux-scsi, James.Bottomley, brking


The flags on a cancel operation are intended to indicate what,
if any, TMF will follow the cancel request. This fixes a case
where we were incorrectly setting the abort task set flag on
the cancel flag when we were cancelling an abort task set.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
---

 drivers/scsi/ibmvscsi/ibmvfc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/scsi/ibmvscsi/ibmvfc.c~ibmvfc_abort_cancel_flags drivers/scsi/ibmvscsi/ibmvfc.c
--- linux-2.6/drivers/scsi/ibmvscsi/ibmvfc.c~ibmvfc_abort_cancel_flags	2013-01-22 07:44:23.000000000 -0600
+++ linux-2.6-bjking1/drivers/scsi/ibmvscsi/ibmvfc.c	2013-01-22 07:44:56.000000000 -0600
@@ -2327,7 +2327,7 @@ static int ibmvfc_abort_task_set(struct
 	timeout = wait_for_completion_timeout(&evt->comp, timeout);
 
 	if (!timeout) {
-		rc = ibmvfc_cancel_all(sdev, IBMVFC_TMF_ABORT_TASK_SET);
+		rc = ibmvfc_cancel_all(sdev, 0);
 		if (!rc) {
 			rc = ibmvfc_wait_for_ops(vhost, sdev->hostdata, ibmvfc_match_key);
 			if (rc == SUCCESS)
_


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/5] ibmvfc: Properly set cancel flags when cancelling abort
  2013-04-12 13:25 [PATCH 1/5] ibmvfc: Properly set cancel flags when cancelling abort Brian King
@ 2013-04-16 20:24 ` Robert Jennings
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Jennings @ 2013-04-16 20:24 UTC (permalink / raw)
  To: Brian King; +Cc: linux-scsi, James.Bottomley

* Brian King (brking@linux.vnet.ibm.com) wrote:
> 
> The flags on a cancel operation are intended to indicate what,
> if any, TMF will follow the cancel request. This fixes a case
> where we were incorrectly setting the abort task set flag on
> the cancel flag when we were cancelling an abort task set.
> 
> Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Acked-by: Robert Jennings <rcj@linux.vnet.ibm.com>
> ---
> 
>  drivers/scsi/ibmvscsi/ibmvfc.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff -puN drivers/scsi/ibmvscsi/ibmvfc.c~ibmvfc_abort_cancel_flags drivers/scsi/ibmvscsi/ibmvfc.c
> --- linux-2.6/drivers/scsi/ibmvscsi/ibmvfc.c~ibmvfc_abort_cancel_flags	2013-01-22 07:44:23.000000000 -0600
> +++ linux-2.6-bjking1/drivers/scsi/ibmvscsi/ibmvfc.c	2013-01-22 07:44:56.000000000 -0600
> @@ -2327,7 +2327,7 @@ static int ibmvfc_abort_task_set(struct
>  	timeout = wait_for_completion_timeout(&evt->comp, timeout);
> 
>  	if (!timeout) {
> -		rc = ibmvfc_cancel_all(sdev, IBMVFC_TMF_ABORT_TASK_SET);
> +		rc = ibmvfc_cancel_all(sdev, 0);
>  		if (!rc) {
>  			rc = ibmvfc_wait_for_ops(vhost, sdev->hostdata, ibmvfc_match_key);
>  			if (rc == SUCCESS)
> _


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-16 20:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-12 13:25 [PATCH 1/5] ibmvfc: Properly set cancel flags when cancelling abort Brian King
2013-04-16 20:24 ` Robert Jennings

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).