Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1187802ybx; Thu, 31 Oct 2019 07:00:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqzLEq6Q42fkPk6yJwe0DF8wqvw4neENcOlW8x4xAx7XPTrdCBNuPCmUJGxVmEiXBWp7eWQl X-Received: by 2002:a50:e606:: with SMTP id y6mr6225869edm.261.1572530414055; Thu, 31 Oct 2019 07:00:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572530414; cv=none; d=google.com; s=arc-20160816; b=f6ElrsifZPuWmzyPg1TbqY2QHjnZoYQ4QvFqHCh5BPPQMLEL3giCkZiBYB1b5Yu2RP wLqYRGaGAhXmCoZ7SMSohKzrgLVmUm0fjSBwcAuVo74Bw7e6HYVv6vr9ivgDov4Gc6L/ BtofR+gAzZvnEV+mZU2hifS/lBS+4atc2hIupQzgGa0EB+HtO6vOIeJ9ZeG7h1+9+/kW CUIh1dcris/DsvtIHFMj8FSbhKzk+h5GkLoPhAGCtB1Gsur9y3gBQp5evfNKQEAsQ23C onBCXVh+JwLg7EG6P5Mn2DCPeMbce4PDy9zXz4D5m3b2ywfiw3B31Gus8BgFvKG1LJ7C wfzg== 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; bh=kZqHtw1MgTTqDSb/jnEDGqWA/DUxcSwz6c+fGPVMXtg=; b=tC8/byYxxAFRlod/LhZUhGjV/YeaaDcabjoEQSHx9h5SYG8pk90N+A+VyZH0aqtPag cZrvF8QNVGuqFsjrbxIUm9OSpuZidz/Sv+37a/GjhfFYDY8jMGvLk/E0Q2YLKjQ7Qw/3 ZMO3nlsvmjGdbsu6mwR0UJ5Bo0CdZS1a8xJBoUMKMb6I03znlKoyEz2+KHwb9kiUxlZw CzeEGaN0lqeIi6Kn/u/PQItEYaw/uWtsip2vgROC1vZ4sJqmOMSuB9QfC9BVRbk4fg08 X2DHQtcBmv/hNElw1XbdgLllNWV0NAW/WRWZE89VrCXuciRqKUhTPT5bVr2V+9Zc1UAi mxRQ== 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 v29si4058114edc.436.2019.10.31.06.59.51; Thu, 31 Oct 2019 07:00:14 -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 S1727719AbfJaN7H (ORCPT + 99 others); Thu, 31 Oct 2019 09:59:07 -0400 Received: from verein.lst.de ([213.95.11.211]:51144 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727567AbfJaN7H (ORCPT ); Thu, 31 Oct 2019 09:59:07 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 5339068BE1; Thu, 31 Oct 2019 14:59:04 +0100 (CET) Date: Thu, 31 Oct 2019 14:59:04 +0100 From: Christoph Hellwig To: Charles Machalow Cc: Christoph Hellwig , linux-nvme@lists.infradead.org, marta.rybczynska@kalray.eu, Keith Busch , Jens Axboe , Sagi Grimberg , linux-kernel@vger.kernel.org Subject: Re: [PATCH] nvme: change nvme_passthru_cmd64's result field. Message-ID: <20191031135904.GA5180@lst.de> References: <20191031050338.12700-1-csm10495@gmail.com> <20191031133921.GA4763@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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, Oct 31, 2019 at 06:55:33AM -0700, Charles Machalow wrote: > Not quite sure what you mean by check for zero in the ioctl handler. I like > the idea of being able to use the same struct for either the original or 64 > ioctls from userspace. I don't believe adding the explicit rsvd field > allows that. You might like the idea, but it fundamentally is a bad idea. For example you completely break architectures that do not support unaligned loads and stores.