Received: by 10.192.165.148 with SMTP id m20csp900397imm; Wed, 2 May 2018 10:33:53 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoS0byj+P24mkys7AmUbinkcQPwn7ILPzZD2ELFWuoI19xJdI9XRoDEl3JB/GPhgW9QWmYx X-Received: by 10.98.50.198 with SMTP id y189mr14934918pfy.241.1525282433713; Wed, 02 May 2018 10:33:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525282433; cv=none; d=google.com; s=arc-20160816; b=WLIY1B7p3sexAB0cstpQ58vrgrUZuM04rJea3mnEucTATCjMvKH2mcC86Ld2d2MjU3 K5n3e5vwJR/6N/mrX+4PFr2VY9z4TJwpBTDJ9DM+zRrW0Zz1yfoqDrVDFmwXZz1XFcLg S2hQufhlheinmoym2Nt4zf8j0Ae3WoxPdQ8Tz89/jD+Io3tfjpJJIOLoe82TIiop7ZVh x+vTNsVG1mS+WpVCPcsXf1mJ5kHXB8lUb4uO88tMZzzJhcn8QemXBztqpQnvcIvt4TqX 7ZOt5j/+bNg8/NQ2hM/65ENE1ejTnmFLoa8mGODOgZpMQ+qzdWhXhDukIsbLjIG0k0xe CoCA== 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:arc-authentication-results; bh=c7HriX8FkNShMMOJgfsCnoTIlsv+MGs7nmtLsxpSU4Q=; b=E4r//H7hJyBauYJnJ12Ow15CwDWs3/zZlowelBhR8+3AHy986Ivg/4qiDI0dDHhGkB io+zpIp74tRMaliN7pcvq8z0wvcmarEXwhdUbwlLjTmBsXCvFFzimI4EbJRp4LDhv0vI 8jwE/6ZSlZOlcRYMZHvrzYPpd9Ycg1Ww87n5/pdpVolaBN63oSxfGgKVmmDNtVrtsbX7 7ia0mitrkpHxZGp6ARFa4Z9CNgIv5a+kSYleLOcUJazrKOywpJQSbxpfWaeRqYDRJD2N jBOkCjOWs6FjOvZmN5T+XDVmW4AncoPCNsASZvpsJPsxnT4ljUxpWH+bXzOwC0yxA0wC tL3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=qk5z5k1Z; 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 e11-v6si2212355pgs.476.2018.05.02.10.33.39; Wed, 02 May 2018 10:33:53 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=qk5z5k1Z; 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 S1751240AbeEBRcL (ORCPT + 99 others); Wed, 2 May 2018 13:32:11 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:46078 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750800AbeEBRcK (ORCPT ); Wed, 2 May 2018 13:32:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=c7HriX8FkNShMMOJgfsCnoTIlsv+MGs7nmtLsxpSU4Q=; b=qk5z5k1ZnVBAL7KAV0+6ZDfBC g7/xZsQW3iMuhR1dWkbPGAPDoFE8Q7h6XnCEvFJ45SyxdsY1/P5jjPfuLaqaTF4PdKqemTkXClhKC BWEy2RP4EnVZp1que3hiSFeaq8RP5GOD9TAcK0EipoZ87qNP5nGLWYDDL34UuMJmrx/q58JhEO+HV gy1OOWrd/MTobfNl6zSVp+VsFMSb6deegAfBmgGr9TWcyRkCdLzI4liOKKwajCIwLAd9GVY4INKFj q8zORaVd/m3uIZltR3AJJpplP17FhT/ICGmpgKg5rkQwvXYkl21lyNwrSzyL0qcUpV/2qqPXpv8t4 e6RTRnuBQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fDvbr-0007Lw-JR; Wed, 02 May 2018 17:32:07 +0000 Date: Wed, 2 May 2018 10:32:07 -0700 From: Christoph Hellwig To: adam.manzanares@wdc.com Cc: viro@zeniv.linux.org.uk, bcrl@kvack.org, linux-fsdevel@vger.kernel.org, linux-aio@kvack.org, linux-abi-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] fs: add RWF_IOPRIO Message-ID: <20180502173207.GA27997@infradead.org> References: <20180430165740.2842-1-adam.manzanares@wdc.com> <20180430165740.2842-2-adam.manzanares@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180430165740.2842-2-adam.manzanares@wdc.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 30, 2018 at 09:57:39AM -0700, adam.manzanares@wdc.com wrote: > From: Adam Manzanares > > This is the per-I/O equivalent of the ioprio_set system call. > > When the RWF_IOPRIO flag is set then the aio_reqprio field of the iocb > is interpreted as an I/O scheduling class and priority. I think this belongs into the IOCB_FLAG_* flags namespace for aio_flags field as it isn't a field valid for plain read/write. Also you probably want to merge both patches as they only really make sense together.