Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3989605imm; Thu, 17 May 2018 19:42:03 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqMjDdibVCTH/z/fVVayN+9LZfHylKlz95rEDFJf5w0aocj5jvvDYt9cJuN3YD30GdMC1SD X-Received: by 2002:a17:902:42e:: with SMTP id 43-v6mr7620398ple.365.1526611323786; Thu, 17 May 2018 19:42:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526611323; cv=none; d=google.com; s=arc-20160816; b=dAta9L01UqZa6zSsRpD8hwFbPXtOGqZ5FYE0y46Nn/069PeWnl+VoaCRC0HQPcRlCI rJ6MZpZgHZoWExXK/jT7TiyC24BthETmSiILXE4j4dcY7C2h7Ef1T3pGjboEN1/ATcL+ CJatTmC8Ig7M6L41ttwTdsOTt+MjkDo519LG3ZzMQZbR0ManWKQn17JWeir4bXZY5Kxg R/fEoYk7dS8on5uvqP8O0Gw/eAtNTd0aKVtOSoUXYteYpopR4IWMD6elNrFlhetzR91x GC5g75LV9JjRBUwkxO9+pTIElj3pfuyHFe23koNibbBWYqzwPX7WVspmbLNbKPCo+UWA w5ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=6h9/Yw7N+RL+YtirrgRjfua4uTb0EXSXDQG7XxCQS20=; b=sEDoO423X1/gK9iN/6Um9IQRJxp6YU1URg1Jg1lt4bCf753cFqwWtX8MpgZeWBw525 FbCp8xrH4v5beOW2piVrtIjWmbOKYihsZhstIcrqVFPBuUG45BcP1lW23awYdNCC1NyV w/2cCjbYxHnSdwrYXZhvDfUP6OWN7CjzKPXgjZM3ooreCiXPIvKr1Bu5uBXnFeHvi0lE o+el7oz6HQDIh3m94Sb4zTJUfp1djEgnPM5xqYyu2AwvOxDAEguE9tq7SUmfHG81SSv6 Y3Pzz7k+0Kwp8p+0Nskgn1G14D+CL6K6Ml3yPQsKGp+GPvyb3vBRAVjeREBi0hJpFQkg TsXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=ORSsL13I; 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 k134-v6si5108441pga.591.2018.05.17.19.41.49; Thu, 17 May 2018 19:42:03 -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=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=ORSsL13I; 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 S1752061AbeERClj (ORCPT + 99 others); Thu, 17 May 2018 22:41:39 -0400 Received: from mail-it0-f66.google.com ([209.85.214.66]:36623 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751649AbeERClh (ORCPT ); Thu, 17 May 2018 22:41:37 -0400 Received: by mail-it0-f66.google.com with SMTP id e20-v6so11421421itc.1 for ; Thu, 17 May 2018 19:41:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=6h9/Yw7N+RL+YtirrgRjfua4uTb0EXSXDQG7XxCQS20=; b=ORSsL13Iz2NG45+pGyPQ7pM6Rd4SrRdBCKx0IfRrDPJn2/4oZgY1SYIkElJ5hqQFTl hh7kl/2MtJ1qknHRB2s7NDmYoRXsxMKQu06/iAc6VVZ546Ws1+OELI/F5gFoZzbJKAPH mZUnYqg+p3hG2r9EkBItWNEeu/2XlzriqYexUdiw3fAtNT5A06q3crrF4hx5QzAsLXBY HClrG2awAhSnGN6E9lKb+ZkozDdYuLahHKtXh7sxqgbhRlRUi9yfZE/KghdO29yGKRuY tk7YFwvBpGEQW/rGWmHL2Una02/P3xCE0TU/PsIMHN1sT2HryMF9znhjA4XiBRxtvBcZ p9fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=6h9/Yw7N+RL+YtirrgRjfua4uTb0EXSXDQG7XxCQS20=; b=VFM88y450ZIGmwojHQRLYMV1HudjzU3ScnJdamp27Jxfbwi37Ac43sXo3+Tpam4VyA 10ay6QkEaLDfT9Z2giERaerlx8blwhCEDBC9UmgbokcPMcW42xpugDRZZe1pAiIvvBYT o87B8KoLo+/w5FC/bTJk7ckWswefOXQoEG6j9YIQffw9xlix5hng5ssrrM/FEui5UQ8r fKabOoi6VmzYL7vQeStulZWu/D50hoEy4VZBVVW+jlyB1lH8M2rMM6TjuIQTZNKmwmFN dgZQi8mZgVIkKKFreMCoRTVq9uB25kd44eKrQlAZIo+G+au7nbXTuf0wt0KqYw9stqyS +G2Q== X-Gm-Message-State: ALKqPwfOQcf6n3LNyn8MAHPIrNEAKeTEGaGHbncg62M2xuz0VjTEz+OB bvKUUoCiTAHMIBJkBCCx74nOlQ== X-Received: by 2002:a24:82c3:: with SMTP id t186-v6mr5255610itd.13.1526611296443; Thu, 17 May 2018 19:41:36 -0700 (PDT) Received: from [192.168.1.211] (107.191.0.158.static.utbb.net. [107.191.0.158]) by smtp.gmail.com with ESMTPSA id f12-v6sm4093358ioj.24.2018.05.17.19.41.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 May 2018 19:41:35 -0700 (PDT) Subject: Re: [PATCH v4 0/3] AIO add per-command iopriority To: adam.manzanares@wdc.com, viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, bcrl@kvack.org Cc: mingo@kernel.org, peterz@infradead.org, pombredanne@nexb.com, gregkh@linuxfoundation.org, bigeasy@linutronix.de, rgoldwyn@suse.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-aio@kvack.org, linux-api@vger.kernel.org References: <20180517203803.2664-1-adam.manzanares@wdc.com> From: Jens Axboe Message-ID: <3ec960cf-e14c-6ff6-3356-186136f43df7@kernel.dk> Date: Thu, 17 May 2018 20:41:32 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <20180517203803.2664-1-adam.manzanares@wdc.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/17/18 2:38 PM, adam.manzanares@wdc.com wrote: > 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 enables block_dev > usage of the per I/O ioprio feature. > > v2: merge patches > use IOCB_FLAG_IOPRIO > validate intended use with IOCB_IOPRIO > add linux-api and linux-block to cc > > v3: add ioprio_check_cap function > convert kiocb ki_hint to u16 > use ioprio_check_cap when adding ioprio to kiocb in aio.c > > v4: handle IOCB_IOPRIO in aio_prep_rw > note patch 3 depends on patch 1 in commit msg > > Adam Manzanares (3): > block: add ioprio_check_cap function > fs: Convert kiocb rw_hint from enum to u16 > fs: Add aio iopriority support for block_dev > > block/ioprio.c | 22 ++++++++++++++++------ > fs/aio.c | 16 ++++++++++++++++ > fs/block_dev.c | 2 ++ > include/linux/fs.h | 17 +++++++++++++++-- > include/linux/ioprio.h | 2 ++ > include/uapi/linux/aio_abi.h | 1 + > 6 files changed, 52 insertions(+), 8 deletions(-) This looks fine to me now. I can pick up #1 for 4.18 - and 2+3 as well, unless someone else wants to take them. -- Jens Axboe