Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1887926imm; Tue, 22 May 2018 10:56:35 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqhyjtLhOfWRLGyK5s1UL3GElkyPOGE4yxa49yjdU+4pmTZRb5NdXSfpsvM9jw51zGHMAe7 X-Received: by 2002:a62:c6d9:: with SMTP id x86-v6mr25152604pfk.192.1527011795301; Tue, 22 May 2018 10:56:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527011795; cv=none; d=google.com; s=arc-20160816; b=iBSnuHnEBB9h5MovPmL6+L8TRCef988BMH5h3bDTyUE7fRbEBFTcyAS4sj9s1GnJaD GsptWRwKJ1VHwM6intD59WoGOWQNOrKkN7BFfI1r3pW7bTBeGRmwtjkttsWjgE7HwYpX +6w+4QovvAtkPWZ1YI8XLBTeQGC1DiinbpowgUCDQ8RL1vKc8Yfa/PsG/dTJKOckzVsy buRmC0t0rlSdVgraztD/6R+RvYjVWjxfBJuMBotlAtKAhjOQPgNkdBrZqYdigO82ODrd mSvZ99YLfs8qu5tvvRJw0B8HaexmpwfcgQ7t/KmIaRy3GTPOSVfNwHSpiYYLPOQVMvJs Rx2g== 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=TBy6AAMx9BFB7nHiVc1N852sCxhPsSLGXHE8OPSxFnY=; b=ALCiiT0VWmmCr3vSvZp5lDzPmrg1rRBXUDme8360iEhrXyNAa46+Kh0u1R/1P/+Sb4 IYNv0E0wTmaNUtsKxrAbFLw4qlttKnRM3iAJWFsxihasw7LVVmrqiR5w7Pjg7N2Gsqi3 jJloNh4SehylE1HmWjrkWGDZphD6Hn74Noz/WH2+B/RKNbdsnIDxaLFFLdi8YFQz4TKA rTQnylsSsa60uYrb0WgKdrZL/4dz2FVVIlv0hGVM+ppZkWrft1nCB4ZmgV0dEEMrSLSS DNn9kkKLJxzNBFwrQ2MxS3+vYZqTUZie2oylLm2iGtmzKMx2Kklewt2gVMyT6IariQma XsQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=dNua3BGm; 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 e33-v6si16455459pld.231.2018.05.22.10.56.12; Tue, 22 May 2018 10:56:35 -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=dNua3BGm; 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 S1752633AbeEVRyV (ORCPT + 99 others); Tue, 22 May 2018 13:54:21 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:22290 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751915AbeEVRwd (ORCPT ); Tue, 22 May 2018 13:52:33 -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=1527012190; x=1558548190; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=7QRuew5s8JBa5frVv3J2DHeR4kHDLHIQvEOtWtaOl+8=; b=dNua3BGmoNzmSvjulXozTQqMuzl0SNsqVzLecJ5cHMbRrvpfseY7sCFS BKe0xkgrLbx080nXrrVcd86UkjD+U8Cos2Vf+qD8cZIRnwH+1LDNwS43E 79NCIN/RMvn6MQ/wUSRevftb6w3QJTeyGMHKB9Tt1aww1Zz6I5/UbacSO PKgjD/WKApL77Di3KfErQ7JgPiFleX7EXkbbMgAZvCxvFWmK6oXYOYyt4 TWhzbhsDvvjtnM5Ugw57shd9vlG54gAy5F3RZxMOYUngnleVa2Ed9mocK odHoHXPG3cUrIsvH7GKQKkUuEucnHr7IrVp/Kz+DB1/6KA7bSVCo793bM Q==; X-IronPort-AV: E=Sophos;i="5.49,430,1520870400"; d="scan'208";a="175448569" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 23 May 2018 02:03:09 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP; 22 May 2018 10:42:56 -0700 Received: from penguito-adamm.sdcorp.global.sandisk.com ([10.11.47.13]) by uls-op-cesaip02.wdc.com with ESMTP; 22 May 2018 10:52:33 -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, tglx@linutronix.de, kstewart@linuxfoundation.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, hch@infradread.org, jmoyer@redhat.com, Adam Manzanares Subject: [PATCH v7 5/5] fs: iomap dio set bio prio from kiocb prio Date: Tue, 22 May 2018 10:52:21 -0700 Message-Id: <20180522175221.2391-6-adam.manzanares@wdc.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180522175221.2391-1-adam.manzanares@wdc.com> References: <20180522175221.2391-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 Reviewed-by: Jeff Moyer Reviewed-by: Christoph Hellwig --- 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