Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1420050ybm; Thu, 23 May 2019 00:18:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqz06YqN/CpMb92vIqqmGBc9rI4H4oWe0CmWPWp3d3gvOJVsqpkBIGLvZkyw3yYeo1VfMBf0 X-Received: by 2002:a17:902:a508:: with SMTP id s8mr77246386plq.186.1558595921576; Thu, 23 May 2019 00:18:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558595921; cv=none; d=google.com; s=arc-20160816; b=Dgvhyf7wyX+LPbGjnnnZJUPwnbwBvBsfeKWwCFmOokovgKoLO8B5zSCiL3Hp6dCZwh xBGC5w5BzB756q8q/yLT4in3tXELQ055EscmqtNI+dIqOJQTdIQy2+S1nPrXdIsdjdCy yCzxoPfq12fz7mRnmS8t/byqGbnu0nNiUxTrns3RO8+PwFP/QgRBbiq2APaWqO3TJisR 1g8icF/YzFbFupc60SWWgiZ7ucB+LoK6yOhisFdrbGYQp5aUDDkQYBi1Wi0mY+mThCSQ mZe2LuvLDPf1ft9ouo9ZxACfe7ty2pwlS/sYwuBRPibv8YpVQxgKFdM9oR/oyMddJjKW 5yJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=M0ycoNnuuc3c+zi1klb0h4hjXlgQYQVLPAfVACKXUSk=; b=USYh1skbxLfZMMhb+WVrqAGFloNhJy/RBhlmKnq8INDMSrrzVhDc6Roji0thcfP2Ab ZJKIMzZ7zASq1d7QeOWSsW5Ycyq1p0PmJ2dftaINR+pqXwqxa3t0JB/9t+N88u1V+Nlm nb/XAdWaXDAONAzJr6vbAfl4vQ44KajpaWJxqaChIjsJU9dSyYKU7h8gdOxqjSMtOes4 1SyqAHAIReKSW+KeJLKIEbx7M7lYU7x3GmBctU8OwM6iCtDjA0zCt2SDmkW4nS2omC2X cp30uf+RTRQXZGRUwmIJQDBq/HnDVlATyrmTIp12CdAsEVY5oPBEoi5tethEksERwVV5 4/qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ky26tUWo; 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 z23si29076942pfa.277.2019.05.23.00.18.25; Thu, 23 May 2019 00:18:41 -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; dkim=pass header.i=@kernel.org header.s=default header.b=ky26tUWo; 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 S1727319AbfEWHRR (ORCPT + 99 others); Thu, 23 May 2019 03:17:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:33720 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726230AbfEWHRR (ORCPT ); Thu, 23 May 2019 03:17:17 -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 C4E1C204FD; Thu, 23 May 2019 07:17:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558595836; bh=eiGOOX+EGA1KBiToSWBKualahQfAUa0B+ueJ5NG+3hA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ky26tUWoLRLmc9oFI55i6FmOCFtmJyYaUeQcO/BAX7wMD31mamubA8JN8SepI7iwB 8nk/5BFfgliPziiTdoy+ulGp6nfazf/kSKFr/0jD6uAP13R6nrPPzTvi/LzG9UQODT XXPW6wM0pM/5dkpeE8gmD0enuH3x7lXiFHBwuTPM= Date: Thu, 23 May 2019 09:17:13 +0200 From: Greg Kroah-Hartman To: Hariprasad Kelam Cc: David Kershner , Petr Machata , David Ahern , "David S. Miller" , Jann Horn , sparmaintainer@unisys.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: unisys: visornic: Replace GFP_ATOMIC with GFP_KERNEL Message-ID: <20190523071713.GA24998@kroah.com> References: <20190522170530.GA4331@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190522170530.GA4331@hari-Inspiron-1545> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 22, 2019 at 10:35:30PM +0530, Hariprasad Kelam wrote: > As per below information > > GFP_KERNEL FLAG > > This is a normal allocation and might block. This is the flag to use in > process context code when it is safe to sleep. > > GFP_ATOMIC FLAG > > The allocation is high-priority and does not sleep. This is the flag to > use in interrupt handlers, bottom halves and other situations where you > cannot sleep > > And we can take advantage of GFP_KERNEL , as when system is in low > memory chances of getting success is high compared to GFP_ATOMIC. > > As visornic_probe is in process context we can use GPF_KERNEL. Ah, nice catch! Will go queue this up now, thanks. greg k-h