Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp761714imm; Mon, 21 May 2018 13:58:34 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpyGuCc1tPXg/k3BcXbi1Z8dFt7/jfZpvXquyxJ6qbzsHnPsAvpJ8kKjG+QRvTNUjvRoh4a X-Received: by 2002:a62:c898:: with SMTP id i24-v6mr21636359pfk.35.1526936314103; Mon, 21 May 2018 13:58:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526936314; cv=none; d=google.com; s=arc-20160816; b=rL7eKU+TVkrS6r44c/M3jSn9mx8Ut62nbHj3w+HJdFdpi5wi0ygQXEPxWhoi8Li9rR pYb+xPR3JKpPkhCVCn3jo+ZJxmLj17ZB7Ot2W35XnkXlhGR3XdDRerjNJYH8A4sMoa2M +LL88T4+Ecuj1aOW/3DViDc/EDSQZSWJcxsSeYVcvLBitxX74IYa3bnMJ44VXrV+L4Y/ ZtPOLQApNbPgbuAPk3APhLikMPN2zTTqvreR/WoZIH8HTTYOCRZVrNL+bS4yisGmsCvU USfmGjvgf3zk7C4l7adCWxDWvWe4sxlpnKnu/lDG8C4T/g0q4JMA07e+2m+7HT615J5x KolA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from :arc-authentication-results; bh=f21ScqCjrUkUSZn7K01csas0xbTVdIlqsFxi9v84Ils=; b=DAXRoJn1hADfWMO/QlW6U39VZWYAKxJX+Jp2GTZLc+CvUJ4J6OzHDZSLITJWvt/mgL x4aionLVm1rBBcPQmvPR4GD7YtiiBKotcgh7PxvcXO9ZQuQZ4Q1y5sF4YGjQhbMkQnFJ mmsBi8ETjHgjLv1DIxjNDhTuGg+af8aW+URZkDdXrg+dxrq3wxLaJ0oOc82fS82+lilm brvw+HVHX32TiZuiPMBcOqr8Uoh6IxjyGh7cwmxgmOUa260BAlSr5yO03hc6cZVsAR2t 7t8M9fcXvvoBKRJ59vNenkZ3pWDSTdB8cqPm8M2Fk+qhPo/eFZyWDQsdP4x7AF3jp+9S 3Q+g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u10-v6si14251789pfh.145.2018.05.21.13.58.19; Mon, 21 May 2018 13:58:34 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751434AbeEUU5m (ORCPT + 99 others); Mon, 21 May 2018 16:57:42 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:35826 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751214AbeEUU5k (ORCPT ); Mon, 21 May 2018 16:57:40 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 374244025961; Mon, 21 May 2018 20:57:39 +0000 (UTC) Received: from segfault.boston.devel.redhat.com (segfault.boston.devel.redhat.com [10.19.60.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 96D162026DEF; Mon, 21 May 2018 20:57:37 +0000 (UTC) From: Jeff Moyer To: adam.manzanares@wdc.com Cc: viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, axboe@kernel.dk, bcrl@kvack.org, tglx@linutronix.de, mingo@kernel.org, pombredanne@nexb.com, kstewart@linuxfoundation.org, gregkh@linuxfoundation.org, bigeasy@linutronix.de, jack@suse.cz, darrick.wong@oracle.com, rgoldwyn@suse.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-aio@kvack.org, linux-api@vger.kernel.org, hch@infradead.org Subject: Re: [PATCH v5 0/5] AIO add per-command iopriority In-Reply-To: <20180521160147.2372-1-adam.manzanares@wdc.com> (adam manzanares's message of "Mon, 21 May 2018 09:01:42 -0700") References: <20180521160147.2372-1-adam.manzanares@wdc.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-PGP-KeyID: 1F78E1B4 X-PGP-CertKey: F6FE 280D 8293 F72C 65FD 5A58 1FF8 A7CA 1F78 E1B4 X-PCLoadLetter: What the f**k does that mean? Date: Mon, 21 May 2018 16:57:37 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Mon, 21 May 2018 20:57:39 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Mon, 21 May 2018 20:57:39 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jmoyer@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Adam, adam.manzanares@wdc.com writes: > From: Adam Manzanares > > This is the per-I/O equivalent of the ioprio_set system call. > See the following link for performance implications on a SATA HDD: > https://lkml.org/lkml/2016/12/6/495 > > First patch factors ioprio_check_cap function out of ioprio_set system call to > also be used by the aio ioprio interface. > > Second patch converts kiocb ki_hint field to a u16 to avoid kiocb bloat. > > Third patch passes ioprio hint from aio iocb to kiocb and inititalizes kiocb > ioprio value appropriately when it is not explicitly set. > > Fourth patch enables the feature for blkdev. > > Fifth patch enables the feature for iomap direct IO > > Note: this work is based on top of linux-vfs/for-next I'll cook up a libaio test case. Can you put together a man-pages update for this? Thanks! Jeff