Received: by 10.192.165.148 with SMTP id m20csp2171701imm; Thu, 3 May 2018 11:34:26 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqpcp4u0B3regMUaLf8HAsVo4jRHwInOnpEmUbppBKSL95VpG1I9fCBbmuqe7atgII0E2p0 X-Received: by 2002:a17:902:6b8b:: with SMTP id p11-v6mr24470054plk.212.1525372465917; Thu, 03 May 2018 11:34:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525372465; cv=none; d=google.com; s=arc-20160816; b=QJZsmmyd2Vx/i0V17IU+IY9g0zceToc+PIN8F5+IeHdm+f4kzxJuFbNy1Tnq4M4SJV bvGdzlMTKc9scGMyojltQOnwwYxgPgajI061SnRpLId/213u5od34k+jX3nxUbJ/HEpJ Z3TmVdV/EVYdQK2RC6JhTc8J2X+I8BumI8d1lY67wGoTQ5vhhWUPDHS17hmYRIVjheW+ QdUDCPHvcUYWps0lkXWdvfXOKFNCzwp/X3ZM2aI4fZiOZd38ppHzVCjAZDfgymF871xp 3Ot2dYYmVSgSAk0ByYwygsbSE/JOA2O4W9pxJyCgH8w0Xh7b4SuheRpDH3A9S6/+5aqK ircQ== 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=gPso9mo2fa1ohh5b6bxp4q3vN0T+3fZFLH0sWIsbeTE=; b=kfTXCKsfLG4YdQR/+5w4/76uZEqlX0F4TMXtVyiRDu3f116TRmPq7tr1ryNMaNKJYe 65KcD3M6s/FvPa0mvaeSc1qCmCjThsvgafh3CMOjjFy9zq1faayhQG2JHE/3NoZrPlRa KcmsCL/zFxuNLiIbtJp0ycKO36p+y1wE8VARZXxWXzLoNIJy8kOTummax7tDDbPn3zxi RF4jKLrTgUGej6VexqrrDHlUJA5Ky1g8MGkxcsLd8RVrd0iGPU5aQi25otm6L9jw+Uvw 7gUfCjkZ9MJXJvUIfHVHhERrHt5J0swefuwkOX2bLuEUOGASZ3B3tt2V1M+RUhROyD1F 2qMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=qxWAmNAY; 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 d25-v6si12530644plj.344.2018.05.03.11.34.10; Thu, 03 May 2018 11:34:25 -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=qxWAmNAY; 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 S1751240AbeECSd7 (ORCPT + 99 others); Thu, 3 May 2018 14:33:59 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:41432 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750969AbeECSdz (ORCPT ); Thu, 3 May 2018 14:33:55 -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=gPso9mo2fa1ohh5b6bxp4q3vN0T+3fZFLH0sWIsbeTE=; b=qxWAmNAYf3/BETs/o81vIvl1A upfKkTk7h8BMUj6YcryFFxKNgN6uIwaMdxCcxJdf7ti3K6S3oBN11FH1mkYqKU0PeT6hNXOh768np 47UKbk/QbX3wsLYvr2SwI+0pqqCIQPwCIWrXpRUfoiVD/WRmAQDB6nbCyR0EPSjfRuo072C5HsTpM ukvqMYTp3MpEOwPNbqAQeUDB+CautN+zoc9OnEEIV6ufW1WZxm0wds16H1OrxfO4AK424LE2j2YBY eSZZs66GPuLUwmVKxjrdz496FOOI1i3AHLtlyM8RnuYn3QX4iF1Xx6IpVsiDHunkpVTzAcXqV02wm X9bxllJ2Q==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fEJ3B-0004qD-H3; Thu, 03 May 2018 18:33:53 +0000 Date: Thu, 3 May 2018 11:33:53 -0700 From: Matthew Wilcox To: adam.manzanares@wdc.com Cc: viro@zeniv.linux.org.uk, bcrl@kvack.org, linux-fsdevel@vger.kernel.org, linux-aio@kvack.org, linux-api@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] fs: Add aio iopriority support for block_dev Message-ID: <20180503183353.GC1562@bombadil.infradead.org> References: <20180503182114.2797-1-adam.manzanares@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180503182114.2797-1-adam.manzanares@wdc.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 03, 2018 at 11:21:14AM -0700, adam.manzanares@wdc.com wrote: > If we want to avoid bloating struct kiocb, I suggest we turn the private field > into a union of the private and ki_ioprio field. It seems like the users of > the private field all use it at a point where we can yank the priority from > the kiocb before the private field is used. Comments and suggestions welcome. Or we could just make ki_hint a u8 or u16 ... seems unlikely we'll need 32 bits of ki_hint. (currently defined values are 1-5) > @@ -300,6 +301,7 @@ struct kiocb { > void *private; > int ki_flags; > enum rw_hint ki_hint; > + u16 ki_ioprio; /* See linux/ioprio.h */ > } __randomize_layout; > > static inline bool is_sync_kiocb(struct kiocb *kiocb)