Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4010893pxb; Tue, 17 Nov 2020 09:03:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJwi+CKvIj3Mqbzmw+X5JkgXqDqXnm2HBWO0mvlh/6bX1AZCWf+RmCo2kh6o2+15kA6EiHZH X-Received: by 2002:a17:906:1183:: with SMTP id n3mr20051353eja.188.1605632637599; Tue, 17 Nov 2020 09:03:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605632637; cv=none; d=google.com; s=arc-20160816; b=Kpj4IknFPkWbvBl4Qgno6NXKNniFCv4V2Se7jbf0V0MjxHvz9r1ukOV2sVLrYOHgb5 dnPElCBled1gGISnekABPO424Q0HSBlqRvkO8Sl8sdRbXTfaCduJLW+pSwB0CgE1adlZ g6RnpLJVARl+PoCLkbah8zrVngx7JeG1xdy9V+8FLkR5fSliwqJ9j8PGPQyevZArG+S+ huCJaYJYmusL/mFpzKdjfkcTo5R+ptEJOfqSOygOEm6BVb2Zs+lRqHq/v4OOqDRox1Oy MPg7Ezy5CFnGxgJlxm4kOt4EmfUrf79HdJu7C7mjY/hrGAGAtQzgkZvvq5pwsMHm+AIL dP3g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0FNWPUEiBPTnu/FV+SNckjYxX2cwbAkTOixmd+PN6q8=; b=jJUthDkZjZLhY1Bl3nzKH3B9mYjTuK4lfBc6dcU15H7Bi1CGgJLFOIfeYYA5/SmkC6 1P0zViXgriNVCrt8EZtgtgwmlTXgHLP8xWQraXcMRRZ4N+4SsaKRe7VcXg435u6aR6Ec zjVP7NNvNI9+Io4bxYCFY/CFawcIGFu7iA7RuuelCEetelqNQOmmS3heza4EVr2KTfVD nOx/MBOIsZ9EgQcJY3Drvx6ZGKBUPRTHUfxHdPhBjuRIKcVN9+r4cb2+OpiBdgrCuYeI VVENRvEk89FXENM3PWF4qqy1DtgDbl7ZaPfxkgwSMYs27wbXzbm3dZzqAXLlvqcEUKnB 8TlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pqpS1I8u; 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 w8si13825998ejv.203.2020.11.17.09.03.30; Tue, 17 Nov 2020 09:03:57 -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=@kernel.org header.s=default header.b=pqpS1I8u; 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 S1728468AbgKQQ67 (ORCPT + 99 others); Tue, 17 Nov 2020 11:58:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:43882 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728107AbgKQQ6s (ORCPT ); Tue, 17 Nov 2020 11:58:48 -0500 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 0C5EA2465E; Tue, 17 Nov 2020 16:58:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605632328; bh=ZTUUxWxskv0UyOHOW3ine0OD5r7+QuFzK+yjFiialjY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pqpS1I8ueaU03WEOkVo3+ZiGbjQIy1K/spFwpBG2OJL+4Ycn6URA52R1J/QSVOG8A hmWPfH8SoICnGA7gar0grzLiQ1Ik3dXS8mgWhtxWRZoazlNFI3Zv5V0g3wg7HWonks d0JulfjXezAXDtAtOQkyif1mxfR81iEeDWgTPrAQ= From: Jaegeuk Kim To: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, kernel-team@android.com Cc: cang@codeaurora.org, alim.akhtar@samsung.com, avri.altman@wdc.com, bvanassche@acm.org, martin.petersen@oracle.com, stanley.chu@mediatek.com, Jaegeuk Kim , Asutosh Das Subject: [PATCH v5 4/7] scsi: ufs: use WQ_HIGHPRI for gating work Date: Tue, 17 Nov 2020 08:58:36 -0800 Message-Id: <20201117165839.1643377-5-jaegeuk@kernel.org> X-Mailer: git-send-email 2.29.2.299.gdc1121823c-goog In-Reply-To: <20201117165839.1643377-1-jaegeuk@kernel.org> References: <20201117165839.1643377-1-jaegeuk@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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. Signed-off-by: Jaegeuk Kim Reviewed-by: Asutosh Das --- 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 8e696ca79b40..c45c0cff174e 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -1868,7 +1868,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.29.2.299.gdc1121823c-goog