Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1885182imm; Tue, 22 May 2018 10:53:25 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp8h5OWP2oiiEH3VstqFFOArbOEOaAcr9EcaxtBBifWHR8CDRAh4Glyy+UPt/xGZe6qq7Xi X-Received: by 2002:a17:902:694b:: with SMTP id k11-v6mr25860335plt.334.1527011605450; Tue, 22 May 2018 10:53:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527011605; cv=none; d=google.com; s=arc-20160816; b=xTGuQHgrgyvaKlq/KxLZ1VzoQK2QB548WHHVR+EMxOuWrtTu4vvlYYs0AJlo141l6z Kg1D0UGSoJ41nukeAHk+407IslfwWcj6RrKXBlCWASr1E/X/qOnriAc5ybSJFugQtKUJ /6p1sRF+eOTVQOMHwkLjCaSX+edTF2ilXQRQsp3q2XbFAu7xAeSTJLJvxWqgC5BAwqDw aJK0fm9/fZpsUkdx/mhKub1t3InAw5Lo7/FexP4jhUGD0S607J43bsmaf/P64uKdBa4J wlpXG2V84ZBTguQ0/BBupwX7NloZC/7KqtHKslzasKS9N1SWUkG6fWqc+7m7VgTN0AOt EQyA== 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=C6Y9fzf7ENJkdg3uhyD4QrFkawkTg0AspdC/YGvaPUI=; b=lkxM1fttD2v5PLlk2ojAGbng8u6scve5pczc2lW1+cFjgowJADlPsx8AYFcoNv7Z3c G9vZ6R+5Zy1fnjblVTXyPkiZgNgzRFdL0q2ZJum5n/4C8RA+7CMxOhxCcjLzIE9Yr1ow YUcRNpT6wZYa0PESAAW19GsqTrCOpb8dw95SKbOmWgmAHWGl/XMThS8O8hm6eIaD5BCm JDXWS0h2XK8Uru8zA1lm7O6+ia9xNq2ZbKO7E37CTHcmduiMKtmAjIJNY0OU2sYay9K8 Kb0HTmqIMyB0HcRb4KDcWA1PwvlmtmJLXsAZ8fEhmCSaJVOmyjbGHrbxlFkuwqVXM0F9 dTbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=lCh3FM6K; 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 g125-v6si13035988pgc.568.2018.05.22.10.53.09; Tue, 22 May 2018 10:53:25 -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=lCh3FM6K; 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 S1752637AbeEVRwk (ORCPT + 99 others); Tue, 22 May 2018 13:52:40 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:36288 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751883AbeEVRwc (ORCPT ); Tue, 22 May 2018 13:52:32 -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=1527012189; x=1558548189; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=wOksNMfnTk9JKfmzdPqpkDj8uIh26U2sv0i/13xJQNA=; b=lCh3FM6KId3xCDqGg2BnqqScoL3uYWSBnHXC9ZMzpvCHx86bzHacU5T3 1MqpllT9NciZ71acK2uIqLNY8VSo3go/10vGPvUX0or3zzXMTDktFRNyH tYpqT2jgIEwGb7MAnUezEW8JGjg5jZN58DHxTIPR6YBF/IYbRkc+6F4h+ btR1MpW4apVKDghehYfTZnHs6zmB/5/Nr4eDLLzB6ZBZv5iHzgR3LayOa fpYtJGqQJhJCQiJgCdcZjCYWjtIfu4YnrR3Mr+XdQoJySrADwzQYvSR74 mcW+DJjIz16VwCtUOE+8ktqGod1WpwJD+wHwnVi69TK9/vC4j4oBRDEtj Q==; X-IronPort-AV: E=Sophos;i="5.49,430,1520870400"; d="scan'208";a="175448568" 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:32 -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 4/5] fs: blkdev set bio prio from kiocb prio Date: Tue, 22 May 2018 10:52:20 -0700 Message-Id: <20180522175221.2391-5-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. Signed-off-by: Adam Manzanares Reviewed-by: Jeff Moyer --- fs/block_dev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/block_dev.c b/fs/block_dev.c index 7ec920e27065..11ba99e79d2a 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c @@ -216,6 +216,7 @@ __blkdev_direct_IO_simple(struct kiocb *iocb, struct iov_iter *iter, bio.bi_write_hint = iocb->ki_hint; bio.bi_private = current; bio.bi_end_io = blkdev_bio_end_io_simple; + bio.bi_ioprio = iocb->ki_ioprio; ret = bio_iov_iter_get_pages(&bio, iter); if (unlikely(ret)) @@ -355,6 +356,7 @@ __blkdev_direct_IO(struct kiocb *iocb, struct iov_iter *iter, int nr_pages) bio->bi_write_hint = iocb->ki_hint; bio->bi_private = dio; bio->bi_end_io = blkdev_bio_end_io; + bio->bi_ioprio = iocb->ki_ioprio; ret = bio_iov_iter_get_pages(bio, iter); if (unlikely(ret)) { -- 2.15.1