Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp480055imm; Mon, 21 May 2018 09:04:50 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqaw5bHuUDzg9DIHQbeLFVUSFPR7d9MsldFLDfncMFH9GeYarlpWyQfRsuvMExVx1GgVW3+ X-Received: by 2002:a62:1fc8:: with SMTP id l69-v6mr20667746pfj.49.1526918690209; Mon, 21 May 2018 09:04:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526918690; cv=none; d=google.com; s=arc-20160816; b=DGXKe5LXol6Jp6UHJfVb2WDxON5sB2iEl5nBUBPWV9SFXPSX+B39pw5sNxHiiGNvht wlKDdKwOOPGo8xuW4k9qPT+Zggphu8neh5fUE4YL2lEN9jf5lWzbWKVZ0eJhboBU8xOn CD9TALPfREs9mhqHBwsoXCx+GaB9Ai0j6ZZLJ5+oLJ1rC1sNlbe04XcZ7hr100sJR3GC Act6jG7CwMLoqrO6Jl86PxX0haD5U76FpDZhnrcwKQGDm+fLXVOMQ4ePUy80fE+W0eFd 9V570oSkzaYDbrv/21Im8VmJgEikJ3bDuTfy3KZCytzPSoT7lh02/76vQ9FIys1g0RtJ JCwQ== 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=LmFkGypNa8hUhK7GCa0AwXzOI635zo7+QGqaZ5C2O4M=; b=ZcuQEcMiJEZrl/shlB1hhKmHvs2UDjVIkzU6veC6xN3yHJqrZWSnDX6bsZczMlFE6o a1PBRGOfvfzy4190oYrGRRtZyh1QCF2kgm/BiKKWVVrsMIAYqCx0wmQahFsfluX3Ycm9 fc8mzAR2g99mVGR/dUb/lsH/9tLWcyIJbReVDTfcYh8c5/7aHf3of/YZ/MTiFdhFGmvJ rX40FWxzGJ+8W/3Y/Pti2yVYZe/kMkoDd/Y+whj1W22RLpfl99LWGkP+f676LsmhCWpc 81qGj40DhRIhyqmbmz0qllnUfcW+n6SiyIR6rBzosNSAiASFWaeovo9MTQNr48WcrA/h 9JdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=UCNGDs3q; 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 n8-v6si14138330plp.468.2018.05.21.09.04.35; Mon, 21 May 2018 09:04:50 -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=UCNGDs3q; 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 S1753240AbeEUQDp (ORCPT + 99 others); Mon, 21 May 2018 12:03:45 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:59151 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752657AbeEUQC3 (ORCPT ); Mon, 21 May 2018 12:02:29 -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=BF/rbEn7hNzMm10jdKstH/RRNP2fxMVRoh4lQpywTEY=; b=UCNGDs3qata04GixFdhx0Z0lTEnH4HxevU+8pM2Kr64bNx+q5m2TjWmP n6Dr1VhVEdRwE6CvDa8HJ1v84+NdXj45ha3RseF9MEvMXwsc1Jbe+crQ/ ccd+xiNGnlDXDglWhCdoB1tpm4ZDcNl9Pay4SfdVRaPpArEEO2SrNu/Sx 7xwOjDxSEMMJTBLHRWUxxXrFUZo1TUtwd6eE2YA5cKTFrKm9zAw6V7a+k NyACHfpUG/RtOscd43spgpONS41on6DqTAn9G/uYjVXMCGlSudv/G40N1 bxlmGwyayc2TQ58sS7+JjCIG25dIW6WxkSf/iEge1OTmSq9hEyqsMIGOE g==; X-IronPort-AV: E=Sophos;i="5.49,426,1520870400"; d="scan'208";a="79445400" 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:29 +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:26 -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:29 -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 4/5] fs: blkdev set bio prio from kiocb prio Date: Mon, 21 May 2018 09:01:46 -0700 Message-Id: <20180521160147.2372-5-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. Signed-off-by: Adam Manzanares --- fs/block_dev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/block_dev.c b/fs/block_dev.c index 7ec920e27065..da1e94d2bb75 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c @@ -355,6 +355,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