Received: by 10.213.65.68 with SMTP id h4csp451329imn; Tue, 13 Mar 2018 09:27:52 -0700 (PDT) X-Google-Smtp-Source: AG47ELtoPfmoBldk0sQXOn+L65ohC9B/FyqR1yqPuXHCfWrUT6ZVhER+P75NWuGCkFg0Vgl+fJai X-Received: by 10.98.211.1 with SMTP id q1mr1158111pfg.199.1520958472231; Tue, 13 Mar 2018 09:27:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520958472; cv=none; d=google.com; s=arc-20160816; b=q9xhIBd/k0wo33dWQWfIvYMT74qSvYwG/jN0ddgOWY5lA20SsJkTThduppw+tAoFwK ezmPX8zF0Zf02XSx0k63T0M/k1hiLZa9pZFOJiQzSFkdSIOc1ixBJ9s0gQgZPHI8zTsE 6irDPfebT3WCKiiM6v1THB6OcPAcBwkqoQQ3JWAlZ5BIMn+znr6XzwCuIZ+YGiTEAOdU VE6nRzyPrhWZYOxlqacNCoj5vaN+M7YDm3PCEAD4vIVSdz7G214p9M9i1VqnfVvFcN5o v81BuATR7/Y0dNYVzmvB91o0/qfEga9AvI1Gx14pl2J6CB35nW/ui9Rqwfkpxfvq54H/ ZGKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=PQWBLImWdY/RPIZC6Fbp9fvUxOhIqxrkhpOiBel+Y6A=; b=k6f3JCoQHDr1y/4db+zSRC/5Pbo/CUAu5vrKycHTbm8UQCgsdNxaJbR0sbo4Z3QeiK jFoFyU6OpAjemr7J7EilSe8J5k/mSSa5SNHEjiFONKFxNaFgWwTcjU2mJrXWfp6oSNH8 4HhyRovCILbiNXeCPu0dAAuLrPR1kDDZM+HfWMXBliKmTGf5OdNCWDU01k/4PcAtcxu7 KOffJFZnrHL/QonSKj8zFCKwXWlRev8iP778at5yObNt5rcqske3T87pp1f9hlv0HxSE MrF313zkmjS6VKrqBnoyrkT5HrAdM2mR0o4/ENciV1tN0hCRGpP33aWyPUFsgmhu9bar Pj9g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r25si321493pge.478.2018.03.13.09.27.37; Tue, 13 Mar 2018 09:27:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933651AbeCMPd6 (ORCPT + 99 others); Tue, 13 Mar 2018 11:33:58 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:60864 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753110AbeCMPdw (ORCPT ); Tue, 13 Mar 2018 11:33:52 -0400 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 619DBFF9; Tue, 13 Mar 2018 15:33:51 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Quinn Tran , Himanshu Madhani , Hannes Reinecke , "Martin K. Petersen" Subject: [PATCH 4.15 126/146] scsi: qla2xxx: Move session delete to driver work queue Date: Tue, 13 Mar 2018 16:24:53 +0100 Message-Id: <20180313152329.929849171@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152320.439085687@linuxfoundation.org> References: <20180313152320.439085687@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Quinn Tran commit a01c77d2cbc45ba527e884e5c30363a1200a4130 upstream. Move session delete from system work queue to driver's work queue for in time processing. Fixes: 726b85487067d ("qla2xxx: Add framework for async fabric discovery") Cc: # 4.10+ Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani Reviewed-by: Hannes Reinecke Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/qla2xxx/qla_os.c | 3 ++- drivers/scsi/qla2xxx/qla_target.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c @@ -3190,10 +3190,11 @@ qla2x00_probe_one(struct pci_dev *pdev, host->can_queue, base_vha->req, base_vha->mgmt_svr_loop_id, host->sg_tablesize); + ha->wq = alloc_workqueue("qla2xxx_wq", WQ_MEM_RECLAIM, 0); + if (ha->mqenable) { bool mq = false; bool startit = false; - ha->wq = alloc_workqueue("qla2xxx_wq", WQ_MEM_RECLAIM, 0); if (QLA_TGT_MODE_ENABLED()) { mq = true; --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -1205,7 +1205,8 @@ void qlt_schedule_sess_for_deletion(stru ql_dbg(ql_dbg_tgt, sess->vha, 0xe001, "Scheduling sess %p for deletion\n", sess); - schedule_work(&sess->del_work); + INIT_WORK(&sess->del_work, qla24xx_delete_sess_fn); + queue_work(sess->vha->hw->wq, &sess->del_work); } void qlt_schedule_sess_for_deletion_lock(struct fc_port *sess)