From patchwork Fri Feb 18 18:05:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sreekanth Reddy X-Patchwork-Id: 544210 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE2B0C433F5 for ; Fri, 18 Feb 2022 17:55:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238778AbiBRRze (ORCPT ); Fri, 18 Feb 2022 12:55:34 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:51606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238779AbiBRRzc (ORCPT ); Fri, 18 Feb 2022 12:55:32 -0500 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1F8249694 for ; Fri, 18 Feb 2022 09:55:15 -0800 (PST) Received: by mail-pl1-x634.google.com with SMTP id l8so7751639pls.7 for ; Fri, 18 Feb 2022 09:55:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:mime-version; bh=/Y25QePgUHs8nIW8fW4Am6XIlyOdRRLMntnfpkezVmo=; b=T/l7yDDl7yON7yYnWLT8L+sXdjWd36aDBoFrecnsI4YEK6mWQToHnMtoZJwKZUa7x3 EHKsG4dqsmqwaShPyJXCJet9rcuS23Mxq41hGc0g7IWZROjephlNUqmv7Eat4X5YELu3 W7TVg6YkPcNqCLcJuoaWpuD3mWLh++ZQgzMro= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version; bh=/Y25QePgUHs8nIW8fW4Am6XIlyOdRRLMntnfpkezVmo=; b=ZBIdmvUv6daPABMqo9FixT6+6nShRKMQF7UJ39G3khsnVSTy7IHK5jcVAXIPKhb+Qt 3BKjspL/nvp8nRfgBbZR0/QEpOtVw3yHCQcWtbgG1Qk1+4hcaURzLNfQXkq2mHoMf1Gm YUh4O92nwky4uy64uEuhP1O0XM9eM4YAM/AmA9MhsaGSA3/WUgoIfuLp+/i2O7RiKT/S Ymnp3TuNS1jsK14/+RDznXelO3IJkyMZGedV729B1ouqr2fHVF9N6NyoN/XofEiG+RYL k+K11MnrajkYbA6XCCQDdD5Ey+2ei+x+XClXKNO5RNlaMTFQlMKGyz5TqONuO2BirEht J0Ng== X-Gm-Message-State: AOAM530crx6/pjt+gnrGKyuzedWVFeBakiuubAWxqM5RWN+jW0oyfBKF HlSYHJDXSleFrmE2SQNYmTPpe73vMOy/ccPv79RCR59AhOyfl9oXEgbwZfSZr64YNUPXVRcjfS3 iqMwAkOf9e1CVeq4lu91dSec+tu188Zx5tFpBTZXXxN3BBkdAEJ205MHSk/x4tx3NP+fQJ6aY25 ASWZWliX1tf8w= X-Google-Smtp-Source: ABdhPJxOWwecHX3Y5qJ1XXeZ7ike6j0XmG9A+WQ0A8gdwSbblUI3vLNE5Y5hz3GgtYKX8dyXYU5LPQ== X-Received: by 2002:a17:902:f243:b0:14d:7f7d:6c6b with SMTP id j3-20020a170902f24300b0014d7f7d6c6bmr8570704plc.76.1645206914898; Fri, 18 Feb 2022 09:55:14 -0800 (PST) Received: from dhcp-10-123-20-36.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id f16sm3948654pfc.110.2022.02.18.09.55.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Feb 2022 09:55:13 -0800 (PST) From: Sreekanth Reddy To: linux-scsi@vger.kernel.org Cc: martin.petersen@oracle.com, mpi3mr-linuxdrv.pdl@broadcom.com, Sreekanth Reddy Subject: [PATCH] mpi3mr: Fix flushing !WQ_MEM_RECLAIM events warning Date: Fri, 18 Feb 2022 23:35:15 +0530 Message-Id: <20220218180515.27455-1-sreekanth.reddy@broadcom.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Fix below warning by not allocating driver's event handling worker queue with WQ_MEM_RECLAIM flag enabled. workqueue: WQ_MEM_RECLAIM mpi3mr_fwevt_worker [mpi3mr] is flushing !WQ_MEM_RECLAIM events Signed-off-by: Sreekanth Reddy --- drivers/scsi/mpi3mr/mpi3mr_os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/mpi3mr/mpi3mr_os.c b/drivers/scsi/mpi3mr/mpi3mr_os.c index 68f874b38de8..f7cd70a15ea6 100644 --- a/drivers/scsi/mpi3mr/mpi3mr_os.c +++ b/drivers/scsi/mpi3mr/mpi3mr_os.c @@ -4308,7 +4308,7 @@ mpi3mr_probe(struct pci_dev *pdev, const struct pci_device_id *id) snprintf(mrioc->fwevt_worker_name, sizeof(mrioc->fwevt_worker_name), "%s%d_fwevt_wrkr", mrioc->driver_name, mrioc->id); mrioc->fwevt_worker_thread = alloc_ordered_workqueue( - mrioc->fwevt_worker_name, WQ_MEM_RECLAIM); + mrioc->fwevt_worker_name, 0); if (!mrioc->fwevt_worker_thread) { ioc_err(mrioc, "failure at %s:%d/%s()!\n", __FILE__, __LINE__, __func__);