This is a note to let you know that I've just added the patch titled

    [SCSI] qla2xxx: Fix vport delete hang when logins are outstanding.

to the 2.6.39-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     qla2xxx-fix-vport-delete-hang-when-logins-are-outstanding.patch
and it can be found in the queue-2.6.39 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From 9f40682e2857a3c2ddb80a87b185af3c6a708346 Mon Sep 17 00:00:00 2001
From: Arun Easi <[email protected]>
Date: Tue, 10 May 2011 11:18:17 -0700
Subject: [SCSI] qla2xxx: Fix vport delete hang when logins are outstanding.

From: Arun Easi <[email protected]>

commit 9f40682e2857a3c2ddb80a87b185af3c6a708346 upstream.

Timer is required to flush out entries that may be present in work queues.

Signed-off-by: Arun Easi <[email protected]>
Signed-off-by: Madhuranath Iyengar <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

---
 drivers/scsi/qla2xxx/qla_attr.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

--- a/drivers/scsi/qla2xxx/qla_attr.c
+++ b/drivers/scsi/qla2xxx/qla_attr.c
@@ -1877,14 +1877,15 @@ qla24xx_vport_delete(struct fc_vport *fc
 
        scsi_remove_host(vha->host);
 
+       /* Allow timer to run to drain queued items, when removing vp */
+       qla24xx_deallocate_vp_id(vha);
+
        if (vha->timer_active) {
                qla2x00_vp_stop_timer(vha);
                DEBUG15(printk(KERN_INFO "scsi(%ld): timer for the vport[%d]"
                " = %p has stopped\n", vha->host_no, vha->vp_idx, vha));
        }
 
-       qla24xx_deallocate_vp_id(vha);
-
        /* No pending activities shall be there on the vha now */
        DEBUG(msleep(random32()%10));  /* Just to see if something falls on
                                        * the net we have placed below */


Patches currently in stable-queue which might be from [email protected] are

_______________________________________________
stable mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/stable

Reply via email to