Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3241033pxk; Tue, 15 Sep 2020 13:57:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKOzz/buedYnyUoumvo0yamJ83SeQPox76Xz+Yc20yaSFTl4ygKN/Y6JiSK2vO27NDGK6H X-Received: by 2002:a50:f28b:: with SMTP id f11mr23949000edm.44.1600203431868; Tue, 15 Sep 2020 13:57:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600203431; cv=none; d=google.com; s=arc-20160816; b=dtrlho80bgC2RIcH6Pgt7lJIsrmSedBUKaLli8J2YYfE+GbB8L/o3PoXhxgcjEYBza SPbpgUvc29HAqIPTnevVtQhZetzeyRyYaJjBxBM7Yr4bd6ts2r+wFXqJsNlDDbtAvIS0 R0vJkvtFywD7KVLm0F3u2i/6elElDRpcqNhuKmG8XQEzEv51OVNKOKZoxjVG0haStH8L kqPg0mXrPiGqGuOdSywkhqiWSxyM5fLtAWZP85ntZVcHklwGLhw0x0QYES/Yc6aWp01A /LUK3l6c1TfFWcp16aep9k85NK5J+Vf91GKuQzLimCLxkyJYVAIKn1E7vSq5bMWnmsUK Wr3g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=S2jpyOh9UTX0yGhSPzyty5wi7Ht1pAp+kV+6DEUmadE=; b=OT3NrXCaxROUedp2uJcTeUbb5Mep/9tnqhuFJJoKu+bygqp0qzb27ijdjbahOVzq8v /pUmCQTdEG1o+xZbm/+oJfCekFuRc19DuGrSXGJnnbQz6qaIHGLcRuqN6mHkrxLMV9Cf oJyvrVxO8w4Tq8dUDc2x43yR+iixz3oB21U6d955MTW3GrRmCfyuGAPWewqSaJ0ixH7M VeOMveB4s36T9GRw6dmOpQvTuZWvR0NMl979vbnhGCtxtvige3Ev7g63AXW9pqV5MWVE 1x0L8peNAKHQzx90j/r9hRnzRoUGSte8BcyLfq16ONjg60M3ugwsqjc2P2JozNqcfbCa mvfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BvJpNvDX; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t15si8223766edw.359.2020.09.15.13.56.49; Tue, 15 Sep 2020 13:57:11 -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=BvJpNvDX; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728079AbgIOUy2 (ORCPT + 99 others); Tue, 15 Sep 2020 16:54:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:42694 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728078AbgIOUqh (ORCPT ); Tue, 15 Sep 2020 16:46:37 -0400 Received: from localhost (unknown [104.132.1.66]) (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 5F87620771; Tue, 15 Sep 2020 20:46:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600202797; bh=NOLqD59ZXyc/29xCULK3dghDfnH/zVdAa3vvLnNbexQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BvJpNvDXs/tHKPSODHFGSmNMOIiMaLoVGbQdvVWU1ukJHP8Y9LXn2QWOnyanJyg4o x6i5/OeM1HiUgTUXIORPJb78N41aG+tvpX7TCMCskcQL7ZRL9yhLZeD/kR+6IqhmYu fGdgDNxhba/zQtaaWzREvL+ndA2H2+xvPrvIyUZg= From: Jaegeuk Kim To: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, kernel-team@android.com Cc: Jaegeuk Kim , Alim Akhtar , Avri Altman Subject: [PATCH 3/6] scsi: ufs: use WQ_HIGHPRI for gating work Date: Tue, 15 Sep 2020 13:45:29 -0700 Message-Id: <20200915204532.1672300-3-jaegeuk@kernel.org> X-Mailer: git-send-email 2.28.0.618.gf4bc123cb7-goog In-Reply-To: <20200915204532.1672300-1-jaegeuk@kernel.org> References: <20200915204532.1672300-1-jaegeuk@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jaegeuk Kim Must have WQ_MEM_RECLAIM ``WQ_MEM_RECLAIM`` All wq which might be used in the memory reclaim paths **MUST** have this flag set. The wq is guaranteed to have at least one execution context regardless of memory pressure. Cc: Alim Akhtar Cc: Avri Altman Signed-off-by: Jaegeuk Kim --- drivers/scsi/ufs/ufshcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 5deba03a61f75..848e33ec40639 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -1849,7 +1849,7 @@ static void ufshcd_init_clk_gating(struct ufs_hba *hba) snprintf(wq_name, ARRAY_SIZE(wq_name), "ufs_clk_gating_%d", hba->host->host_no); hba->clk_gating.clk_gating_workq = alloc_ordered_workqueue(wq_name, - WQ_MEM_RECLAIM); + WQ_MEM_RECLAIM | WQ_HIGHPRI); hba->clk_gating.is_enabled = true; -- 2.28.0.618.gf4bc123cb7-goog