From patchwork Tue Nov 20 01:52:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Damien Le Moal X-Patchwork-Id: 10689761 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1FE1F5A4 for ; Tue, 20 Nov 2018 01:52:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0719229FF6 for ; Tue, 20 Nov 2018 01:52:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EDE172A031; Tue, 20 Nov 2018 01:52:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E37F29FF6 for ; Tue, 20 Nov 2018 01:52:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730639AbeKTMTT (ORCPT ); Tue, 20 Nov 2018 07:19:19 -0500 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:40409 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730379AbeKTMTT (ORCPT ); Tue, 20 Nov 2018 07:19:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1542678763; x=1574214763; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=gBWAj7JdLrgOOxiDB5ngT44Hj5+j1cMZk7HpibFgk28=; b=X2dtZ7GSzh9On8J8HhRi3bEyBkuo8gjEaloAoaq9QMzzzM9oHvqmyFHn CX4pG3QrL2N4D/YIZkd3Jv1Id+Q4tlEhkQMVX82aliZIdjK5tYurXUaVO FwsFWKRp7N7dtMi8R56ZVwMxIGFlNOHDFt2e2eIbeOeB7j8cRrouLwKwi Dt1HOoa0r3vKS6YCV7h8lfviIYGlrhmiOEHdXof0fBilOw7ew8Di06Ymp dsCWZFWHUn+sb7nRGjlX+mBqm+WtMAuewtrOSvwGoNn/U5Tc8ZnFsmoNa QXw+uRDXPK8kovda8x+6kD9Cy5CKVBoyQ6HDOiM/1+tFc3wtF9EQ/TTt7 g==; X-IronPort-AV: E=Sophos;i="5.56,255,1539619200"; d="scan'208";a="95813253" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 20 Nov 2018 09:52:42 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP; 19 Nov 2018 17:35:57 -0800 Received: from washi.fujisawa.hgst.com ([10.149.53.254]) by uls-op-cesaip02.wdc.com with ESMTP; 19 Nov 2018 17:52:40 -0800 From: Damien Le Moal To: linux-block@vger.kernel.org, Jens Axboe Cc: Adam Manzanares , Alexander Viro , linux-fsdevel@vger.kernel.org Subject: [PATCH v2 0/6] Improve I/O priority handling Date: Tue, 20 Nov 2018 10:52:32 +0900 Message-Id: <20181120015238.26467-1-damien.lemoal@wdc.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This small series based on for-4.21/block brings improvements to I/O priority hanlding. The main fixes are in patches 5, 6 and 7. These fix BIO and request I/O priority initialization for both the synchronous and asynchronous pathes. Changes from v1: * Removed not very useful comments in patch 5 * Dropped get_task_ioprio() change patch Damien Le Moal (6): aio: Comment use of IOCB_FLAG_IOPRIO aio flag block: Remove bio->bi_ioc block: Introduce get_current_ioprio() aio: Fix fallback I/O priority value block: prevent merging of requests with different priorities block: Initialize BIO I/O priority early block/bio.c | 4 ---- block/blk-core.c | 12 +----------- block/blk-merge.c | 8 ++++++-- block/blk-mq-sched.c | 4 ++-- block/blk-mq-sched.h | 2 +- block/blk-mq.c | 4 ++-- block/blk.h | 16 ---------------- fs/aio.c | 2 +- include/linux/blk_types.h | 3 +-- include/linux/fs.h | 2 +- include/linux/ioprio.h | 13 +++++++++++++ include/uapi/linux/aio_abi.h | 2 ++ 12 files changed, 30 insertions(+), 42 deletions(-)