Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1339156imm; Thu, 23 Aug 2018 01:06:08 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzwsY+mspBzSWx+VqXBIg2P3MKPgpJbuJQzNtLBTGiVHFo2LdgVCd/uLk7MF0Rq1R3Bxt3S X-Received: by 2002:a17:902:48c8:: with SMTP id u8-v6mr58011850plh.152.1535011568104; Thu, 23 Aug 2018 01:06:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535011568; cv=none; d=google.com; s=arc-20160816; b=FST6aQCUW3c/RFl4N/yfspzU/eY9ihEkjQMPa8m8d8YXrIJzlWe9gTyXNxXtYPuEn6 l+lfbAdplVDJgjSuuU1BByodzn1bUWrrEchVmIEcxbAyhwOXyIPxzw18W5IQdaYkL2hZ GliPIskZotAg9as+l9XyZBOUwXVCnSLyHEQj3XoLsAwig4wJ/2YeZQ6CQ9lwQx0KQUO/ 6iXwQifOGRETbIru4paJcF/llvuxRdId69jF3zqvnIh+dqgNwBFFbXtGRHUv1kGwIYqO TeBl7BI5gILozgiBpoDHI63OMzmLSpTbg4ipfI+kWRNAhBWzvDdF9vPzc7dVS1RbxSDu gFdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from :arc-authentication-results; bh=4dZBfMsveEfJdkLsmS5d2OiSSBQXzVPlSTRGM/9gQfo=; b=YUWKFtfji5AIm2tywVR2PHx6VNzQAoK2APHrS91cLIX6sfJA2vV9DovQB9KsOgyu2k Xdr2Hyv26KutJWipiWQgUzL8NTLM19QssBm6Hp1X0ulTxGfT7Cx+/bt9SAZEnWBL+8Jj HdraugPeerSQ/rsQRk2G6N9D+mfSxbeDJj2H87xDKQZcDRq0MJjL924/AJ+n71u/0+O+ 1Xdd1F4Re0VgcsfSV5eu106lc8Ir91Aut96d/5qew/PedP0cWLFGAVVLKCxcsMIpRK2v e+uyZy8krgFOw1f9AjzsSOWhtjbI7ZUhg7FDz36DIEIBubbK59ukRlb9TpW2AAL4jEAj OiTw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y24-v6si3625422pge.28.2018.08.23.01.05.52; Thu, 23 Aug 2018 01:06:08 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727718AbeHWLcH (ORCPT + 99 others); Thu, 23 Aug 2018 07:32:07 -0400 Received: from cmccmta3.chinamobile.com ([221.176.66.81]:10418 "EHLO cmccmta3.chinamobile.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726045AbeHWLcG (ORCPT ); Thu, 23 Aug 2018 07:32:06 -0400 Received: from spf.mail.chinamobile.com (unknown[172.16.121.19]) by rmmx-syy-dmz-app12-12012 (RichMail) with SMTP id 2eec5b7e6a5847f-bc0e0; Thu, 23 Aug 2018 16:03:36 +0800 (CST) X-RM-TRANSID: 2eec5b7e6a5847f-bc0e0 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from bclinux72.localdomain (unknown[223.105.0.243]) by rmsmtp-syy-appsvr10-12010 (RichMail) with SMTP id 2eea5b7e6a57c3c-19678; Thu, 23 Aug 2018 16:03:36 +0800 (CST) X-RM-TRANSID: 2eea5b7e6a57c3c-19678 From: Ding Xiang To: james.smart@broadcom.com, dick.kennedy@broadcom.com, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] scsi: lpfc: use GFP_ATOMIC inside spin lock Date: Thu, 23 Aug 2018 05:14:58 -0400 Message-Id: <1535015698-17948-1-git-send-email-dingxiang@cmss.chinamobile.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org GFP_KERNEL may sleep,so can not use it in spin lock,use GFP_ATOMIC instead. Signed-off-by: Ding Xiang --- drivers/scsi/lpfc/lpfc_scsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c index 5c7858e..3813f84 100644 --- a/drivers/scsi/lpfc/lpfc_scsi.c +++ b/drivers/scsi/lpfc/lpfc_scsi.c @@ -5928,7 +5928,7 @@ struct lpfc_device_data* /* Create an lun info structure and add to list of luns */ lun_info = lpfc_create_device_data(phba, vport_wwpn, target_wwpn, lun, - pri, false); + pri, true); if (lun_info) { lun_info->oas_enabled = true; lun_info->priority = pri; -- 1.8.3.1