Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3725438imm; Thu, 17 May 2018 13:39:39 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp+hlujneLMsUZ73ghvr17Bk4xcZQWbUI5V7O5lQOfYYEWuf+A7/AS8tV2PCJ6qnsYqD1CA X-Received: by 2002:a63:7453:: with SMTP id e19-v6mr4995848pgn.87.1526589579147; Thu, 17 May 2018 13:39:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526589579; cv=none; d=google.com; s=arc-20160816; b=eMDIBDlb9qH20MFIt+d+WKSUwhVwu0qtPUaijgj2nZ1ax73l+nXb7z5auBL5Wo+n5s RwWkt4J7rj2iyFhW9ABCzElJPe9O3r5V2YcI6d1RzyCSegAVkpXZ7gIpsw0bCDtcafiN 4Pr8hfvt16iKX9OhckNvGOQNNOdgJDxeSqxcV4LyW2LoXlfaWaYIsNIbARjzzkdSaR3c 2HhTUzONAwaMQKAxmuGguYqnlZmsOILyMiKeLkCKAB2wzN2XpvcDgk74831QzTCZnoxV xENxxqgD3JSQ1j5pcZEAkpyl32d1Rsjz3V4dBDtbNA+0OMSycg1+GMlCIFOmj8/3iugE l3EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=6tmoQGhqydWJ8lBkBmiO0PU3WS/OCU7oSj7ObZ8VdTw=; b=0MKTTRHdtzCR1B2ITibPvvYItXnyMXogiq4/30P4nZ8k9mWx1EnOZ/wliMWPRjAwgP CW1diH+t1ZaCJMV88620pego5nb5AITZgY0yzBGTv9B+7kGukqblXpvgL4fGq1MeNpw9 7DQSHkgDSsxH88z3mWhQ2o1EcE4kBimZeA9POYx8GExdJ6IJ8nRYrkSw8/ZfMXVBovB9 /UPhdsGbS7WR2YfWP8C2dnojfGeegJ6ElZCkFddpCaAz5c6cNCPX7ovMdQ8OHSuBveRD l9Pg4yEa/NX9E0Sgp7NJkRalG078yY+c9M6l9dELWP0kUZ+hMoh6m3n9EOmmvZRU6P/7 dn1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=IgAeKrmz; 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 q84-v6si4817224pgq.91.2018.05.17.13.39.24; Thu, 17 May 2018 13:39:39 -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=@wdc.com header.s=dkim.wdc.com header.b=IgAeKrmz; 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 S1751914AbeEQUi1 (ORCPT + 99 others); Thu, 17 May 2018 16:38:27 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:60847 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751017AbeEQUiZ (ORCPT ); Thu, 17 May 2018 16:38:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1526589506; x=1558125506; h=from:to:cc:subject:date:message-id; bh=RHfL3Askk9zzMwiGSSMIMUijFomzH4FXzrxbgURlwl4=; b=IgAeKrmznk0txitCvboE/pOKC129MRf9YnHQx+RhbHjVO/jAHlpRumLJ 0HmnUQJOz64r/jAvhrCHzghUZR8/wrkHwQJZKEU/FTSTmoAZbyedecYZV 9ZneVOuXADhxjG2hQ6Q96Pal9vKSFscxuPQnOg9CHfv4NY0eUFyz1BlKV 51R/8MtJMQ3S2x8WzAn6yVJ9BJohGElNm8VXFQtQ847XUB3LuBsXghKAD KhRNIROoQSdUmHv/xfFGZ+rNaQRq0/5i4zmjJBPZH+qgkqPge7bfex8DQ cUy63LDJl9/geNBcuVR+3l4dvLigAJsex5GQCKOLeunrhVygfvnsGZ84J A==; X-IronPort-AV: E=Sophos;i="5.49,412,1520870400"; d="scan'208";a="78199739" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 18 May 2018 04:38:25 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP; 17 May 2018 13:29:28 -0700 Received: from penguito-adamm.sdcorp.global.sandisk.com ([10.11.47.13]) by uls-op-cesaip02.wdc.com with ESMTP; 17 May 2018 13:38:25 -0700 From: adam.manzanares@wdc.com To: viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, axboe@kernel.dk, 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, Adam Manzanares Subject: [PATCH v4 0/3] AIO add per-command iopriority Date: Thu, 17 May 2018 13:38:00 -0700 Message-Id: <20180517203803.2664-1-adam.manzanares@wdc.com> X-Mailer: git-send-email 2.15.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.15.1