Re: [PATCH v2 03/14] qla2xxx: Allow vref count to timeout on vport delete.

2017-02-08 Thread Madhani, Himanshu
On 2/8/17, 5:03 AM, "Christoph Hellwig" wrote: >On Fri, Feb 03, 2017 at 02:40:44PM -0800, Himanshu Madhani wrote: >> -spin_lock_irqsave(&ha->vport_slock, flags); >> -while (atomic_read(&vha->vref_count)) { >> -spin_unlock_irqrestore(&ha->vport_slock, flags); >> - >> +whil

Re: [PATCH v2 03/14] qla2xxx: Allow vref count to timeout on vport delete.

2017-02-08 Thread Christoph Hellwig
On Fri, Feb 03, 2017 at 02:40:44PM -0800, Himanshu Madhani wrote: > - spin_lock_irqsave(&ha->vport_slock, flags); > - while (atomic_read(&vha->vref_count)) { > - spin_unlock_irqrestore(&ha->vport_slock, flags); > - > + while (count-- && atomic_read(&vha->vref_count)) >

[PATCH v2 03/14] qla2xxx: Allow vref count to timeout on vport delete.

2017-02-03 Thread Himanshu Madhani
From: Joe Carnuccio Signed-off-by: Joe Carnuccio Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_attr.c | 4 +--- drivers/scsi/qla2xxx/qla_mid.c | 12 +++- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_attr.c b/drivers/scsi/qla2x