From patchwork Tue Jan 2 17:54:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 123192 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp9238609qgn; Tue, 2 Jan 2018 09:57:40 -0800 (PST) X-Google-Smtp-Source: ACJfBouYVKN1knqeJa1i/Ps8mv/+TfHJZ9GvnNbqSEo9VQDkyXtjtzez+fXzMJuK8YVaWBAIvXBt X-Received: by 10.84.160.226 with SMTP id v31mr46501534plg.9.1514915860140; Tue, 02 Jan 2018 09:57:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514915860; cv=none; d=google.com; s=arc-20160816; b=tMcNINK5t4XQBhU6pbSGU6zzmBICKDLmHlJf21Y5BXv/qrhmSqLNU7o6rq6DGiYcT8 6FTbjQy2qvxegBtsEUl0h9GE7rWAFBrNGKGdXrxnqnVNOUV8tVFmm6/d6PxIhd8qmump fUpdkbcXiZPsYAcKqXNG8z13xu7aSejhdCqxxXt+/p5xWYm6Jfhv+eOzTnUubNsvuw8R uCM8N2kwiM3YtSe4wsO/fRh+8cxM++AdQ0WgxNG/j5SlSVax/tQBMgTF+naGWY13p0pX 7ckdKg6AQJR1t2gAEn1fA3lLlzk9MjK4OcKwwZoyAWZsi92SWEbgCxeWW+pqkR5cLS77 r+jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=c9jAmUnS2LiDwzPdy/5weNVvj+mk+ERw+kDJcWKrajs=; b=IW2ygdiqBKW+c7VIGunm4WEca9BLUY7Ftu97oRxrOnJpFv5gXChHeFKPNH12o8hKjf 4Idqg3Y/W0ZWl/nkhzWCDXIoiUbyDCbgZAQhQoYRwba6s+82bJYTre5+Nu/04J708VFO 0XU9SuF7Rrok1gi4lt2FMi1ZOBeVV9fwZFBOjmFkc6R6BDdCJJIBCPIRwtwuC+Y6kvIU T7g+XYE2yuktf/8CLQqZAHTr61oFW3XwLDaqEHQm3EKCNtRTWaUKC/C3th1PbaSuu+Mj na3GUlfmb+bVbm+YGB4GIARu3R/CelG4v1QD2hHrN3oo3agEdi1b5bmHcem9w6MuPYuu 9bXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NOHcGe5f; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bb8si1312245plb.287.2018.01.02.09.57.39; Tue, 02 Jan 2018 09:57:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NOHcGe5f; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751416AbeABR5X (ORCPT + 28 others); Tue, 2 Jan 2018 12:57:23 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:43283 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751108AbeABR4i (ORCPT ); Tue, 2 Jan 2018 12:56:38 -0500 Received: by mail-wr0-f196.google.com with SMTP id w68so36837387wrc.10 for ; Tue, 02 Jan 2018 09:56:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=c9jAmUnS2LiDwzPdy/5weNVvj+mk+ERw+kDJcWKrajs=; b=NOHcGe5fgu+PEDQd9fYH8G5sn9v7Ba+UHfu5LdVUf8mwKXLnmeb+52Tkim4W92p/9B 0NKjjr13ckjFZ1O6OGe5+V3D3zY8QzSX1Fg9qMz/fk2dNLcCYjVY27iv0LObM9a3UDAW WVrMZXmGpbj41wQSdtypLSEiO5qusXX05CILc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=c9jAmUnS2LiDwzPdy/5weNVvj+mk+ERw+kDJcWKrajs=; b=rE/C23bhawRdmB4KOHpAybhLUvaW3xs5Bbu/XM2brsZc5vW76Ey8tYUoNuZGBwcViN aR1tPCsiiJ6S3L15hBV3/Rxp9Kd7A21QRyq4QBK4O9FQog9qlWOJ4TD9l32o5or1bFDP HOXqbftArP3c8dDl1XXiAaF7PChMbmaWALZSul85vUYnXoUTXVNQhhWswNKhcH0hzBPr 5Cz15kgeA7xyVuAUEvcNbL7aOhSrL5BwvZBs9ewGewH1huuEFdVIFcTXOWGWz/PsXkX2 fpjPnFSJZ8retsP8NjZjv6Pg3QnZuMpbRimyeWb+XQzhZA/bXr43xRI0jSvlHejvImm4 uOcw== X-Gm-Message-State: AKGB3mIqi0dh1K+Q3WLayXmHMmyJWPJSQmSzn3RBd9RJMnic4l0Nbgde PYeAbbwUmo8mAt7Q3X3Vtml+WQ== X-Received: by 10.223.139.152 with SMTP id o24mr48623664wra.243.1514915797477; Tue, 02 Jan 2018 09:56:37 -0800 (PST) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id u54sm21895240wrf.77.2018.01.02.09.56.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 02 Jan 2018 09:56:37 -0800 (PST) From: srinivas.kandagatla@linaro.org To: Greg Kroah-Hartman Cc: sdharia@codeaurora.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Wei Yongjun , Srinivas Kandagatla Subject: [PATCH 4/6] slimbus: Use GFP_ATOMIC under spin lock Date: Tue, 2 Jan 2018 17:54:22 +0000 Message-Id: <20180102175424.14391-5-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20180102175424.14391-1-srinivas.kandagatla@linaro.org> References: <20180102175424.14391-1-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wei Yongjun A spin lock is taken here so we should use GFP_ATOMIC. Signed-off-by: Wei Yongjun Signed-off-by: Srinivas Kandagatla --- drivers/slimbus/messaging.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.15.0 diff --git a/drivers/slimbus/messaging.c b/drivers/slimbus/messaging.c index 8b2c77f516b9..a9a6dc4af0da 100644 --- a/drivers/slimbus/messaging.c +++ b/drivers/slimbus/messaging.c @@ -98,7 +98,7 @@ int slim_do_transfer(struct slim_controller *ctrl, struct slim_msg_txn *txn) if (need_tid) { spin_lock_irqsave(&ctrl->txn_lock, flags); tid = idr_alloc(&ctrl->tid_idr, txn, 0, - SLIM_MAX_TIDS, GFP_KERNEL); + SLIM_MAX_TIDS, GFP_ATOMIC); txn->tid = tid; if (!txn->msg->comp)