Received: by 10.223.185.116 with SMTP id b49csp6018517wrg; Wed, 7 Mar 2018 23:58:51 -0800 (PST) X-Google-Smtp-Source: AG47ELuqsxID7inkm09C+M30ckLrCqoieeyKKVbqMgaMd+KD7EU0i/r+58wV8aN4rZ+vVp4z5lgq X-Received: by 2002:a17:902:3084:: with SMTP id v4-v6mr22902598plb.102.1520495931384; Wed, 07 Mar 2018 23:58:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520495931; cv=none; d=google.com; s=arc-20160816; b=LMivvUYVamJ/NtuxyN4bJJR2yzAyiC9NDitDlyTrOR0SX3wI34XblZGH/gE7IgoJou e/UF1dQPg0BAMHQvInMJX4z5JyFO/ZKNBPwGZ3DmewLGdtkJpqbAKncTu2hvKLh2Ivt8 L9hKKR30GcnUkw6Zimjzvoj7qYRIJYSQFMOvWsSoADsfTDvM25QvzLJV7dFDiQj9L8zX fooOdMbOZGpLnn515gQZE4OZPqKSXHdigSyrl+m2B/kXVkAAMgbeBdTxTpVhJwSSwwFg KY3n8awWyOE6nJRo60dQHPqKfgsjUrfkltlSShfpxNYkxY8u2ISaqiZQdn9Gx6vk0mHO l1SA== 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:arc-authentication-results; bh=Cjnk4H9PoDa+Oh21im6HuR1AbxrJEahWu7l4WYTRsPE=; b=h7kyvMe9xjRRWB/TrbVUjLIKdcN7AoVu6vJyjaMn9zxIPwNAsnrg0VJfrJTK06BFSP QRI6JseGoHbB10qYCo5Zvqxxr/bV3RHL0aEFhbPYpUy79QYZj/j0FEtPNvSYEm+eVcux NJk+9R0NBMQlZ2ufRYYb0KdFGGmDmHZ3INRMJLySoYxHrL9affRCfmiMo3GZcGrKO8Uk 1io7LDZ2yD1Ul/JKelYUuwsLjy27d5+CJIWweHO4LJ/DymHNfbJ714WN/dTZzSNQq7zV fbpauYayOBQZZ5QItyZp1jg/O/jdXgeU9RZW7S8+mJYP/L91Y42IliA3R7ypQeaMJBGi TIqA== 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 c5-v6si14239252plr.684.2018.03.07.23.58.37; Wed, 07 Mar 2018 23:58:51 -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; 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 S1755222AbeCHH5l (ORCPT + 99 others); Thu, 8 Mar 2018 02:57:41 -0500 Received: from verein.lst.de ([213.95.11.211]:33911 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751865AbeCHH5i (ORCPT ); Thu, 8 Mar 2018 02:57:38 -0500 Received: by newverein.lst.de (Postfix, from userid 2407) id A536B7F12C; Thu, 8 Mar 2018 08:57:36 +0100 (CET) Date: Thu, 8 Mar 2018 08:57:36 +0100 From: Christoph Hellwig To: Jianchao Wang Cc: keith.busch@intel.com, axboe@fb.com, hch@lst.de, sagi@grimberg.me, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V4 1/5] nvme: do atomically bit operations on nvme_request.flags Message-ID: <20180308075736.GB16084@lst.de> References: <1520489971-31174-1-git-send-email-jianchao.w.wang@oracle.com> <1520489971-31174-2-git-send-email-jianchao.w.wang@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1520489971-31174-2-git-send-email-jianchao.w.wang@oracle.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 08, 2018 at 02:19:27PM +0800, Jianchao Wang wrote: > Do atomically bit operations on nvme_request.flags instead of > regular read/write, then we could add other flags and set/clear > them safely. > > Signed-off-by: Jianchao Wang Looks good, assuming an actual need for this shows up in the next patches :) Reviewed-by: Christoph Hellwig > diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h > index e80fd74..02097e8 100644 > --- a/drivers/nvme/host/nvme.h > +++ b/drivers/nvme/host/nvme.h > @@ -93,8 +93,8 @@ struct nvme_request { > struct nvme_command *cmd; > union nvme_result result; > u8 retries; > - u8 flags; > u16 status; > + unsigned long flags; Please align the field name like the others, though.