Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp479626imm; Mon, 21 May 2018 09:04:29 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo+Jb8lMXBC8L4zOk14QkhDUbjcs3oDArO+fANk8u8rWFe6fFp1NdQfl1B5vEMO+yT4lU6g X-Received: by 2002:a63:6e05:: with SMTP id j5-v6mr16288090pgc.150.1526918669515; Mon, 21 May 2018 09:04:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526918669; cv=none; d=google.com; s=arc-20160816; b=JsTXx/l41odxBfCpjLFfZyyLvB3tgn31MqmKy8vUxliA7T6MJwmj767QeS1g6CX4sx AkpGDRSUVld68Wl27xKpacZS+pLQnBPw110DWPpQEPb5oXGqCwj4CdvURBS1dnCs+/b/ dQ3AEVMxOkwg5oyUeNo9BKny4XcsxN0zAFYTFUR0ug2Ssq7PBmzc74ZoLgnDw7zClgyP N5pTgvBL+4L1Ty2VodJs2TXBw1PIrWkycDzNmNlq7YGPBaxZBTJ6eXiZtULgLmWFlV0p EydFMG8dnREAXEKJ7nqVgwXMw6AKJ9zeTO96TynZSkqyxZuwoFDs2oMnoMbnm4n+zI8j shaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=tC9YyhTiXCIlfv+oroC+VuR3DZ2ALhWkBZs4W8n9NeE=; b=smhZLGDauZT66a5CoTTYFzMl/KjJ3t6Jl5v5+gLqhJhKm7JWWu9QgEEoviUAebA+ax 5Hhtia1GyMz0EfEdbGdNcFrzhBjbtcss5/8arfKAuYjJMnxzFZ8a93wyYtIicLv6gv+A XPIM2y/4ApaI3vY7RDxhtTVmPqcxo5W8YhkjgWfVCrF/XkmO7q24FDluhv9sIDT/y3jR G90ckMDXb8aW8uPtgjA3/DaTWbmwpCfH78GIRSCkd1ZcE1+Hhr/vspvJNW95DDrFR9mM ae6dB3IuiUoKwFvV5KgZhyHTEUf2ypnVg1Ss29EezCRyZxZbuUl4d0AvQcs8PKBNdEcI Oq1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=DjN6mKjZ; 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 m7-v6si4188684pga.530.2018.05.21.09.04.14; Mon, 21 May 2018 09:04:29 -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=DjN6mKjZ; 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 S1753221AbeEUQD0 (ORCPT + 99 others); Mon, 21 May 2018 12:03:26 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:27273 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752763AbeEUQCa (ORCPT ); Mon, 21 May 2018 12:02:30 -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=1526918550; x=1558454550; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=LaXz35R4NgqAKiVN6QEVOuAOdy40a0CoNPIuwvSQpTM=; b=DjN6mKjZaMsdZU9gwKxdiHG+JpWkRNsKvNog8RnY+UVVE668fAlc6Lw2 jNgnodVKIfdGbbJg8RaLOexns469pe2CFtj2Qx1AxEjikAefFjJkaaXVV 0TbJKmB9rvI9Sa6hPYpoCUv+vIY9z6ZyVgyjSX7tP4orCSrR7jHzK+TPS 6WOob4K3GuNh6OvE1k4gte6d1XQzKPZiqdiONerN3rqMdgvs0U01WioBI iT1EmU9p9I4aidw1s3ctfUkzxpVtlBzmpLIRlO4hM2BPUhni97qWqFnii +F1+gVHpwCVJazF1iLXGQ8YwyzBvlv6FcJRf88dFUwiOUNqy/dCjFQ1uR Q==; X-IronPort-AV: E=Sophos;i="5.49,426,1520870400"; d="scan'208";a="79445409" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 22 May 2018 00:02:30 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP; 21 May 2018 08:53:27 -0700 Received: from penguito-adamm.sdcorp.global.sandisk.com ([10.11.47.13]) by uls-op-cesaip02.wdc.com with ESMTP; 21 May 2018 09:02:30 -0700 From: adam.manzanares@wdc.com To: viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, axboe@kernel.dk, bcrl@kvack.org Cc: 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@infradread.org, Adam Manzanares Subject: [PATCH v5 5/5] fs: iomap dio set bio prio from kiocb prio Date: Mon, 21 May 2018 09:01:47 -0700 Message-Id: <20180521160147.2372-6-adam.manzanares@wdc.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180521160147.2372-1-adam.manzanares@wdc.com> References: <20180521160147.2372-1-adam.manzanares@wdc.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Adam Manzanares Now that kiocb has an ioprio field copy this over to the bio when it is created from the kiocb during direct IO. Signed-off-by: Adam Manzanares --- fs/iomap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/iomap.c b/fs/iomap.c index afd163586aa0..65aae194aeca 100644 --- a/fs/iomap.c +++ b/fs/iomap.c @@ -919,6 +919,7 @@ iomap_dio_actor(struct inode *inode, loff_t pos, loff_t length, bio->bi_iter.bi_sector = (iomap->addr + pos - iomap->offset) >> 9; bio->bi_write_hint = dio->iocb->ki_hint; + bio->bi_ioprio = dio->iocb->ki_ioprio; bio->bi_private = dio; bio->bi_end_io = iomap_dio_bio_end_io; -- 2.15.1