Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1708940imm; Tue, 22 May 2018 08:09:49 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoc3vVbLNgsIIr7zZc6IlCsk0cgLRhiX4q7SuLrRumpgaThGPocYYkl1NRXn+7B28VhKyte X-Received: by 2002:a17:902:41:: with SMTP id 59-v6mr25359174pla.345.1527001789416; Tue, 22 May 2018 08:09:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527001789; cv=none; d=google.com; s=arc-20160816; b=r2gK+4MD1IPW/X5XbzTRs7LvQn4WiKRJi2OwVbzMuvTL0DmRBUr9Dbs5fzaH17yttm BNLNerZQOlVqos9Pire5+gQ0tvzrAPWKFXf8mrlt1NfcqWOzhEWDiCbJHhlXKSdG0NAW 5QKJpUvax/EMCB/pYfoWcl3PCf6gxmr4ranZOaGb8OEbZgK+HUe9/H8Hjs2UFwJ+JMJ6 3hbOuvjoKthAYZVDUGgPt8oQUPHvr1A3KNGT5SqLQjz/165mDqrfhX4AzYB0irz/hMNf lrkHNMcIWZpwdn5e02J5nGjs5VXB4CJ9p19JBQ9w7regeOz2df61RM+qE3rFAVYrumGx FfAA== 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=egkvk7OiDBsfoBbJFV7SxUKc06h62+O7NwBkRLEFhHmHfU7PJJi/CVDgE8Krwkr5Xd 8zYtYVsk5IWkp/biKokFDqLG3DdAMWFauWb5G33LowrZtRCZ0CsEmo5fzXZRwKJoSsXP gvbwrXCz0HRyxly1Z1nDRVKM66u410zKN2RcVYz6v9HFsDdlA2NDyDFuNUpPkEediseH NToY/ifTa0BLesMGAj1mvsh8/cYvI8pTSN9nlsn4e98fDcFt0zvo3A09w2Ju0kQzKE2V p7HiaeHKhb7LaJvN3xCKjkuen8axo11wviESUpPY9MmyTwHLWaNjhCqFlSytsYl8kMuf WhDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=IAr72Uma; 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 y18-v6si12851586pgv.202.2018.05.22.08.09.34; Tue, 22 May 2018 08:09:49 -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=IAr72Uma; 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 S1752658AbeEVPIt (ORCPT + 99 others); Tue, 22 May 2018 11:08:49 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:23233 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752141AbeEVPH5 (ORCPT ); Tue, 22 May 2018 11:07:57 -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=1527001677; x=1558537677; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=7QRuew5s8JBa5frVv3J2DHeR4kHDLHIQvEOtWtaOl+8=; b=IAr72UmauxFoyigkqOD0I8BSf6xp7wGAIeC5KqxcOGKaBt1rxXrfaNPo tv0Nxkn3MOox4htQCZJcPEWbCrwtnMJp3WJiQVyUvQOcbZmWXnE2Xfp1h g0juIk52TDrJ5TiBVFYtdpRtA3tYCZxxVXti4CO/4LhQ37qsldj18OfKf dO6ablhW7f/DIOYp+KvywNIEwUIWATrV2GXoxXE/tpyUwCE8OB9t/KSZ7 kg0CQEhpPleebCW6NVkjsDj7t24plC/6GWGewpF9/fypoHKjbyUMl/d7K DNbauEWMbPJPAq56sgHAnsDIb2IfV5UtLE+LrzDBs3c1+oE5cmbIDKZwy w==; X-IronPort-AV: E=Sophos;i="5.49,430,1520870400"; d="scan'208";a="79548773" Received: from h199-255-45-14.hgst.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 22 May 2018 23:07:55 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP; 22 May 2018 07:58:50 -0700 Received: from penguito-adamm.sdcorp.global.sandisk.com ([10.11.47.13]) by uls-op-cesaip02.wdc.com with ESMTP; 22 May 2018 08:07:55 -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, jmoyer@redhat.com, Adam Manzanares Subject: [PATCH v6 5/5] fs: iomap dio set bio prio from kiocb prio Date: Tue, 22 May 2018 08:07:37 -0700 Message-Id: <20180522150737.9893-6-adam.manzanares@wdc.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180522150737.9893-1-adam.manzanares@wdc.com> References: <20180522150737.9893-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