public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Ewan Milne <emilne@redhat.com>
To: John Soni Jose <sony.john-n@emulex.com>
Cc: linux-scsi@vger.kernel.org, michaelc@cs.wisc.edu,
	Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Subject: Re: [PATCH 1/2] be2iscsi : Fix kernel panic during reboot/shutdown
Date: Thu, 02 Oct 2014 10:21:39 -0400	[thread overview]
Message-ID: <1412259699.5241.75.camel@localhost.localdomain> (raw)
In-Reply-To: <4bc79dd1-5ea1-4956-8520-86ed5a8c78a1@CMEXHTCAS1.ad.emulex.com>

On Fri, 2014-09-26 at 15:13 -0400, John Soni Jose wrote:
> In the reboot/shutdown path, workqueue was destroyed after the
>  adapter resource were freed. The task associated with workqueue
>  was getting executed after resources were freed. This lead to
>  kernel panic.
> 
> Signed-off-by: John Soni Jose <sony.john-n@emulex.com>
> Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
> ---
>  drivers/scsi/be2iscsi/be_main.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c
> index db2bd4d..30d74a0 100644
> --- a/drivers/scsi/be2iscsi/be_main.c
> +++ b/drivers/scsi/be2iscsi/be_main.c
> @@ -5223,6 +5223,7 @@ static void beiscsi_quiesce(struct beiscsi_hba *phba,
>  			free_irq(phba->pcidev->irq, phba);
>  		}
>  	pci_disable_msix(phba->pcidev);
> +	cancel_delayed_work_sync(&phba->beiscsi_hw_check_task);
>  
>  	for (i = 0; i < phba->num_cpus; i++) {
>  		pbe_eq = &phwi_context->be_eq[i];
> @@ -5244,7 +5245,6 @@ static void beiscsi_quiesce(struct beiscsi_hba *phba,
>  		hwi_cleanup(phba);
>  	}
>  
> -	cancel_delayed_work_sync(&phba->beiscsi_hw_check_task);
>  }
>  
>  static void beiscsi_remove(struct pci_dev *pcidev)

Reviewed-by: Ewan D. Milne <emilne@redhat.com>



      reply	other threads:[~2014-10-02 14:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-26 19:13 [PATCH 1/2] be2iscsi : Fix kernel panic during reboot/shutdown John Soni Jose
2014-10-02 14:21 ` Ewan Milne [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=1412259699.5241.75.camel@localhost.localdomain \
    --to=emilne@redhat.com \
    --cc=jayamohan.kallickal@emulex.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=michaelc@cs.wisc.edu \
    --cc=sony.john-n@emulex.com \
    /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