Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5871820pxb; Thu, 27 Jan 2022 01:03:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJyev3+NGxpvckpMuQDPZBENV4MbAL78fSkl71U9gVeeYl4tLG9iqqvuqKLbCFNNrSQYaqLM X-Received: by 2002:a17:906:5d9:: with SMTP id t25mr2198477ejt.163.1643274234574; Thu, 27 Jan 2022 01:03:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643274234; cv=none; d=google.com; s=arc-20160816; b=LV2q9z2BgLUtl9HLB6yzhu4q1t4VNfNP7Q2BC5Njk41Zeelqun+UQN7+5CAvfYYSnv UPiB8m3lIX4m1Lr9bCdoOsQc6au0ncGDqGQYloCsEDdiHnz+Sq+MCVN6bFHbH+I7LGoG 8yHT4xTE+es4tQYNxUYL/Unrki/H1QUrLxyucNeXqPgoKJTjhMFFfVevJziTmpEBnwEG nCKQfrin3o3qQcLQDGL0B0/0qeokFcFdW3TNs0f+bFLGA7G3Ed5FWECWrRiHudrDrfTp 7AzaTkIrHw6gJff3UBULimBMUzcCX6KZIA/sYhIhzC5hY+PrjNXvk7LrpIy2eDFdx8Wt /+JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Y8QihzFyYSHPb4QWaKgu9ao8NtkYQJhcqAWxoAcNWMI=; b=TgNCEn+ZNV/53z2UBL1CD3rrs9UFsOFBPEyDf4oTQGYxM3AbhRj9yupqFDlOt/DDRU MVc2k4Apy/4JkFz+m85SrmGTnjLCDsQl6QSfvwtBeDs/zpN2oYRRIbbZTA7CWYMf6445 9am4mUuT67bmA3tvd8ojeL0n7xjAbhwpamx+o3DW5JOVIaZDg2KEHfVz+Ggsql/F2OQL YinrZHl+R0weTvNoKW89/gRQ5bko7ZHf+d7MqRNxAN3SxVMpr5HpjjKZvrSZAzAbwsfO g1HOFzu8m6+5Jmzhd8yCxheG8i3xvcCHoN7mz7GhUdvEbKzoreOstwhk9AjZP28eFpzS QOsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WPEfiyyW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 15si976928ejg.398.2022.01.27.01.03.29; Thu, 27 Jan 2022 01:03:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WPEfiyyW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234604AbiA0Bjp (ORCPT + 99 others); Wed, 26 Jan 2022 20:39:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231985AbiA0Bjn (ORCPT ); Wed, 26 Jan 2022 20:39:43 -0500 Received: from mail-qv1-xf35.google.com (mail-qv1-xf35.google.com [IPv6:2607:f8b0:4864:20::f35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D74D5C06161C; Wed, 26 Jan 2022 17:39:42 -0800 (PST) Received: by mail-qv1-xf35.google.com with SMTP id o9so1487505qvy.13; Wed, 26 Jan 2022 17:39:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Y8QihzFyYSHPb4QWaKgu9ao8NtkYQJhcqAWxoAcNWMI=; b=WPEfiyyWwv8bImjKKaTrdrwQRjy1rJn9MB7ek5L+NTigJDQyPlRjYS7rUpcgvN4JfE iK8Itxpc5sZGyC7hVWG8RGpFu4QkZPKyDw1hLGPozb3IjuulLUr6ksRR2uA0ba8bnCgk YzvH83sdI3W0ZKc4JR/3UxKI7bptncEYKrs7OGQfAmIADOwOosftA7fWr9Fri933Q2Q0 nZh/R0nEif01IxIMoVJ30pNIMgUcxi+DFHnsKfyBu9G2HLrj1ojt/QCdWZI8VDq6oLOI S6gptgeXR8X9EZWQ3pm4ickJGOzRlRINpRJoUVTKikv/eMrHH6UZ6Ps6Bzj6+bSlQJ02 oBVg== 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 :content-transfer-encoding; bh=Y8QihzFyYSHPb4QWaKgu9ao8NtkYQJhcqAWxoAcNWMI=; b=MPdMPMNCNmPsxDkWlX7zzi5wl+YpLtEEyMSnH/EHzImw3ywUkcIoUSwW/JYC+3let1 jpSi+YCKxtWki5z/wxUAW+qUgX+cnjvNDHyeb5eOVFCz1ZLO/I1SDQmgOonOojEz2OL7 9upkXJGFkxDzFI5jdyUye7zfVtdyHtc02K+0TOjttlirnJn7d5DA5rDc+dj0NXpfpHXX W7eUuv4Ly7zv9BuQDporYoMml1dwOsIkbuMF/R7k9ecZvVL9vPcNhihJ0XWTBV9gVtHz QmauFqEKH8/H3Uowsr/vykYRgvDqz0rI7e4yFirm/3Jd0H36qt4yM1ggcF9sqqG4poGR 8b6g== X-Gm-Message-State: AOAM533AdbowRapNkhviOy9u/76VF/fazCGyw3rqWVDULaf9+TsYeqoT kricjYHPu8V3x7nGwb78zJU= X-Received: by 2002:a05:6214:3005:: with SMTP id ke5mr1203861qvb.83.1643247582027; Wed, 26 Jan 2022 17:39:42 -0800 (PST) Received: from localhost.localdomain ([193.203.214.57]) by smtp.gmail.com with ESMTPSA id x4sm538439qkm.47.2022.01.26.17.39.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jan 2022 17:39:41 -0800 (PST) From: cgel.zte@gmail.com X-Google-Original-From: chi.minghao@zte.com.cn To: njavali@marvell.com Cc: mrangankar@marvell.com, GR-QLogic-Storage-Upstream@marvell.com, jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, "Minghao Chi (CGEL ZTE)" , Zeal Robot , CGEL ZTE Subject: [PATCH] qedi: Remove redundant 'flush_workqueue()' calls Date: Thu, 27 Jan 2022 01:39:34 +0000 Message-Id: <20220127013934.1184923-1-chi.minghao@zte.com.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Minghao Chi (CGEL ZTE)" 'destroy_workqueue()' already drains the queue before destroying it, so there is no need to flush it explicitly. Remove the redundant 'flush_workqueue()' calls. Reported-by: Zeal Robot Signed-off-by: Minghao Chi (CGEL ZTE) Signed-off-by: CGEL ZTE --- drivers/scsi/qedi/qedi_main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/scsi/qedi/qedi_main.c b/drivers/scsi/qedi/qedi_main.c index 832a856dd367..83ffba7f51da 100644 --- a/drivers/scsi/qedi/qedi_main.c +++ b/drivers/scsi/qedi/qedi_main.c @@ -2418,13 +2418,11 @@ static void __qedi_remove(struct pci_dev *pdev, int mode) iscsi_host_remove(qedi->shost); if (qedi->tmf_thread) { - flush_workqueue(qedi->tmf_thread); destroy_workqueue(qedi->tmf_thread); qedi->tmf_thread = NULL; } if (qedi->offload_thread) { - flush_workqueue(qedi->offload_thread); destroy_workqueue(qedi->offload_thread); qedi->offload_thread = NULL; } -- 2.25.1