Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1709593imm; Tue, 22 May 2018 08:10:18 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqxyJsPJHYplwtMbJPPWFTUQUPrQCREcUxwc1G1l6Bq959krAuVzyUR/WEgJr/Rwh0dBLBV X-Received: by 2002:a62:8910:: with SMTP id v16-v6mr24277496pfd.13.1527001817900; Tue, 22 May 2018 08:10:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527001817; cv=none; d=google.com; s=arc-20160816; b=bkCRXmWM13BHwqTs0EbQPo+ZRwcZNK7gTLKMIWQLVZ1jzIY4XpNdBo8nx9bMn+La1O wf6DhyXShhk1r7p3Q64MQtYZgggvbLMuuFDitDWvo4TJ/V6Dpg6iwZJZh1r3oKWNLKBq Gd62OuWqcKCwJ00Vyh75rxrNaT/1qf70/fUqDS7uML8dUfhmW7kHKgkGHsD+nMZuYs5D uJJkrIHu1WU45an2e+b+f5J8E80ADjssRKsKUNPhn263mr1Tbe99UKnfkahbsmBI4uM7 nL/uf0l4iuCeCfjKL+AQKqNA1XZ3kfM/1MuK8Y1o/6u+F2+HIz4dZCfoLBpdAgCcLSH+ FN1w== 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=+Yv/XqXJfMq0lO6wRvKKYJCpXOtD8WSE6JDxWgaVw7k=; b=PjjT1oCZV9faOG4xAsoMANSeaXBxKJWuSjoHmA7xv2pDSAS/bQcXX8zECxXOm6mp11 ttDq+3zYEpff7L019fy0vu3tm0wJDiyhf0hWdMYVEYv8zBV8thzSJqRwhGclez+OxGVr eYYWAw+SZ7TP2NdJVTKRItnX9nT3l76AHdmpEbdxtAHSihtEMl0HeMj+6JhpBKLIAqxs pIMnoEUIsDZmdF8TuuO8ZVpIWTLePPkqs+K/F9xufZFDW6zOc6p4MV+YAT6ltNZzfsnR qu8qD49BFcseWCgv3uYCi5xQNOfgm8+OmXfVQVpg0wz8PHfh5vm2/nZY9RHbmMmkHocA skHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=PUYK32aL; 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 x24-v6si4072468pge.395.2018.05.22.08.09.53; Tue, 22 May 2018 08:10:17 -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=PUYK32aL; 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 S1752690AbeEVPJW (ORCPT + 99 others); Tue, 22 May 2018 11:09:22 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:14393 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752136AbeEVPH4 (ORCPT ); Tue, 22 May 2018 11:07:56 -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=FyNKYJmeKi26taeAX6zOs5tjDQHjxdRm22P1DpD3xmM=; b=PUYK32aLgeBLp4eUH5rAkLBrY3P6CPS9+oGaSh4H/iInBMLSsjlqfund i29aHUftZ1gVOPwpPXS4I+6CG/vdQvydUSYgByGB+ejE0qyUaMB0jl4yx j5o4BsR2dzRQPnsuTZCzuMxHHboI8Eo5Y4K3J2atNJGj5WkFV0kLKMqQx ESii5CqTDsiFjrEQ6/OtC1CP7cWNIBY7pvhrGjPHTsLX2/7IpZ5jvS1QV iXLnVVM13jKM2iIuI7EuMZI9GzHFafaUTIJ5uAlsH8x2pakRvXWhtXkq+ kYtUfvuPgU6zK5Foq6TDysqRill+rGe6hLMoyg+r0Z4feq6jGey8CuEm7 w==; X-IronPort-AV: E=Sophos;i="5.49,430,1520870400"; d="scan'208";a="79548771" 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 4/5] fs: blkdev set bio prio from kiocb prio Date: Tue, 22 May 2018 08:07:36 -0700 Message-Id: <20180522150737.9893-5-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. Signed-off-by: Adam Manzanares --- 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