Received: by 10.192.165.148 with SMTP id m20csp4585833imm; Tue, 8 May 2018 10:44:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpkjM2SgnWIVbVoFS+WF95WpKbrL1j/P2tIQuYzzX0AMTRpQoNDe6eZTU01HJ2WHXWF1Lxu X-Received: by 2002:a63:2407:: with SMTP id k7-v6mr33640509pgk.63.1525801480277; Tue, 08 May 2018 10:44:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525801480; cv=none; d=google.com; s=arc-20160816; b=Koi/YxwxgZlBRw5xQb7kiijAqYyha4hCMFfhnx38DtrDxV3PvXF5rbf9vSN0e3ktPJ yaPWlPRvyqhgfg/mFkl8B+8YJjv0Npy6hYxad4WMDNzuatqJoQMJAYQQfnR3KdcGT3LR mqmxEMSCqbXW1Fo61j3VIXCQNsGVvMsniz7yzwJB9LaiQQiynLtwOUJsfxHm4ngbDMnw qHT0d38WdYu2QjQ7+DktuSKLmp1CyEmqo9L6RBNQXxu7NvqKfoWk+kBcVSthsYdNqE68 UlCYl1LhXmxFO1+b96FmLVXH9K+TSndgEFJPLwG3dRy+xjNkHJSKPTc6l/GmyvKk0hkT TltA== 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=HbHsAJux0bnoWpas3QsEEh/MbUi6f5+U1Q26KFfZEYI=; b=TxOX/imQCdN287VBjZC38r/6sHcj2cc5gKzhz+ra/tDUlET/870EBVA3YiFAyFMP6+ 3BiycLlpy+694vrJI4L2bXUxS1p4gtcCwWhdexZfI68dhldc18fKb595Cxpw8jZRLdZ6 PiTXjvPSEEqQdBK+ODlZCcs+o5dBLDL1/h3GP7YHzo0moybL44ddRk1WoE61obLzGi5H Ka9Sl2QLQVilHoKVSvLpJ0ABCxKXH/S4IKZayBLlRnXjmrvmxjThNNr0RdjHlDLGg9Bo E9/WbqbGR2JS226FKrDf2DsGAo3ASb27FijllTfYqQDDGCetYG5scL8jB8MxGo27hxtc R1jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=QS+D+4+Z; 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 69-v6si16089725pgc.64.2018.05.08.10.44.25; Tue, 08 May 2018 10:44:40 -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=QS+D+4+Z; 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 S1755559AbeEHRnj (ORCPT + 99 others); Tue, 8 May 2018 13:43:39 -0400 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:39537 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754655AbeEHRmh (ORCPT ); Tue, 8 May 2018 13:42:37 -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=1525801357; x=1557337357; h=from:to:cc:subject:date:message-id; bh=QT5X9cstRpxagxEr+vpWcTk+yWNZcu0Gm/hC+Y9jXpQ=; b=QS+D+4+Zt60fTgMKWp6Z6ousBGe0/EbhWIuuaY/2I5qXUzY3o70+WaLU mbcc5SWB6L8s85Hx0vVqsr1OzNrDf4tKhxdO9Sagz+gVVyONYzdk0KW4F p6VABCs57QwHHWb2WbGrjkvDrhVc7PJBd/GNNZ4JR1bBJSDoRpB3gPVTK HAyBCSw8lC5c4qX5ZwsHIx/g36gnC5idgZrqhuDapOgcPo1zrULW6+4MV IbLUnvJpAGZZhc+V7gznlLSOF8vs1ljzusau4JF/hkEmmSA6EmmcT9pWu BGWcfVRt1wSoinvpRxnhXWtJ2uQRZriNkrFmbLsTxH7Z84pVlgdv6ulK4 w==; X-IronPort-AV: E=Sophos;i="5.49,379,1520870400"; d="scan'208";a="180732629" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 09 May 2018 01:42:34 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP; 08 May 2018 10:34:15 -0700 Received: from penguito-adamm.sdcorp.global.sandisk.com ([10.11.47.13]) by uls-op-cesaip02.wdc.com with ESMTP; 08 May 2018 10:42:34 -0700 From: adam.manzanares@wdc.com To: viro@zeniv.linux.org.uk, bcrl@kvack.org Cc: linux-fsdevel@vger.kernel.org, linux-aio@kvack.org, linux-api@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Adam Manzanares Subject: [PATCH v3 0/3] AIO add per-command iopriority Date: Tue, 8 May 2018 10:41:59 -0700 Message-Id: <20180508174202.2537-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 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