Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2642128pxa; Mon, 17 Aug 2020 15:15:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrCCUiAP0ri3/9tNFdpNOqL7MimKRIeVQkcXfXGlq+qrUtZLCzhR+B8bOXAV5rfCMz362x X-Received: by 2002:a17:906:cb91:: with SMTP id mf17mr16944081ejb.527.1597702522247; Mon, 17 Aug 2020 15:15:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597702522; cv=none; d=google.com; s=arc-20160816; b=QSjqfa2j1E86z2nNSsWKSYBJ9P7H7LyL8+LXDPKuO0OGb2Zzpv7aveMEVKsTYfuNDD UYCsMLHUHx9BAnes4WXvR6WrvZX//UMCHSM0Pgtm7iVY37eTSaQXIh6TZdcZByXhtCDD KFk63weN6AphxXqGqhSUGzStWPcg5IkHsSgkQUjz9Jwws134e71vbfyN9BSXfriQShu3 L3D1xUb7lXJInPMF2VIAf0SU/NMo7LwsGgO6nA21kVwmOfnlSSHP2vXulqD0JahxP32o GHR74fnylLU+DC+GNQ6UkDqOTOrRemgHRIpblCfIMWdM8iutsxzjKBDLAhzOY2M4dKxL hvxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=PVfBAaHUPVUWAt/Oo5m7dNFARZalnsz22BaJB53S0mI=; b=SoEPiR38wcyay1gN2ggagG7RsbKnFe+WXa+fzLmeTAtATGNlc/z/0AZjnCStVqS171 2kme1T3nuRNHLjBNstbhFNLKa+NZmH++GotGN9M+PD7ZUcExEKyIpaeKj24n52AOs1dv oiXtc2YWyyocnfUP6RMoIm8a/XZAqrZ35aeJNnvtPfiOJfY+8PHD6rTqtI6qzpAXuELB tVbErFI/NpqaSVGU7kt9XbcCyJxdfJxCiPzmmvu/MJPKxQnfxVIzRA5KzLPiA9hkE5P3 QvfAE8OJyBCnxJRND5icUo3q7/uCtu/SpYPHRiVCqXpQixVDr34VtOaLu5E4s0Fevgwk Oraw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lTFITjQ5; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v18si12206458ejj.270.2020.08.17.15.14.57; Mon, 17 Aug 2020 15:15:22 -0700 (PDT) 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=@kernel.org header.s=default header.b=lTFITjQ5; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389256AbgHQQ74 (ORCPT + 99 others); Mon, 17 Aug 2020 12:59:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:53870 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388389AbgHQQF5 (ORCPT ); Mon, 17 Aug 2020 12:05:57 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0D1EC20882; Mon, 17 Aug 2020 16:05:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597680356; bh=Wu7bjlen7VaDzAEZ30fkPJc0jKth6xZTnBln8GLVJdE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lTFITjQ5lcxctN2+WB86iCUS24O3gE7LL4urIUUS01LukGYGoDLs+pvJyRXArQeGn MoSIde24hkKLMWfJA9JZaUW5dn3XtBV6jdoBzQ4Zw0rQdzelUp1iWNSg8P0ZdLMu0l kl7k0pr311G39qPA+ZIW5WSr7cEMWqZayY/IpuHg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hauke Mehrtens , Mark Brown , Sasha Levin Subject: [PATCH 5.4 154/270] spi: lantiq-ssc: Fix warning by using WQ_MEM_RECLAIM Date: Mon, 17 Aug 2020 17:15:55 +0200 Message-Id: <20200817143803.501300258@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143755.807583758@linuxfoundation.org> References: <20200817143755.807583758@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hauke Mehrtens [ Upstream commit ba3548cf29616b58c93bbaffc3d636898d009858 ] The lantiq-ssc driver uses internally an own workqueue to wait till the data is not only written out of the FIFO but really written to the wire. This workqueue is flushed while the SPI subsystem is working in some other system workqueue. The system workqueue is marked as WQ_MEM_RECLAIM, but the workqueue in the lantiq-ssc driver does not use WQ_MEM_RECLAIM for now. Add this flag too to prevent this warning. This fixes the following warning: [ 2.975956] WARNING: CPU: 1 PID: 17 at kernel/workqueue.c:2614 check_flush_dependency+0x168/0x184 [ 2.984752] workqueue: WQ_MEM_RECLAIM kblockd:blk_mq_run_work_fn is flushing !WQ_MEM_RECLAIM 1e100800.spi:0x0 Fixes: 891b7c5fbf61 ("mtd_blkdevs: convert to blk-mq") Signed-off-by: Hauke Mehrtens Link: https://lore.kernel.org/r/20200717215648.20522-1-hauke@hauke-m.de Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- drivers/spi/spi-lantiq-ssc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-lantiq-ssc.c b/drivers/spi/spi-lantiq-ssc.c index 55394bdbc5a30..f9bc1705c0d4d 100644 --- a/drivers/spi/spi-lantiq-ssc.c +++ b/drivers/spi/spi-lantiq-ssc.c @@ -917,7 +917,7 @@ static int lantiq_ssc_probe(struct platform_device *pdev) master->bits_per_word_mask = SPI_BPW_RANGE_MASK(2, 8) | SPI_BPW_MASK(16) | SPI_BPW_MASK(32); - spi->wq = alloc_ordered_workqueue(dev_name(dev), 0); + spi->wq = alloc_ordered_workqueue(dev_name(dev), WQ_MEM_RECLAIM); if (!spi->wq) { err = -ENOMEM; goto err_clk_put; -- 2.25.1