Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp768551imm; Mon, 21 May 2018 14:04:47 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpyFallf2nPU9nARt7tq1m14ZwqB/snn4JlxpThgKro5E0Q7/QYVlYTItN+RooLrmnoOrAV X-Received: by 2002:a17:902:7582:: with SMTP id j2-v6mr21818495pll.65.1526936687356; Mon, 21 May 2018 14:04:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526936687; cv=none; d=google.com; s=arc-20160816; b=dUYdrCV6BBaZAF3AfyERnzZjECpfWoviNyXgcLTT9UTl4GYGdfqR//7+HmUVGQ+E9H JMLg5Vf52aKZ70U7Fi1GeXrkX2M//O47bz+S8SxqKOHIGfUlvw2FrUuy36dCVLj1MEv+ SL9nwhR83lDPBlg2nMb005J75vyjY1qAh1wYtxJtgPK5uIKtxMe+edlBK6WUpiJV8Wkg C4ePTz7z5UG9EFyOUE2uqjYRDG1MCwNp49lBuF1au4YthvTgJJeI4eW1YFFw5tViZQs/ hhLiTlbncJilCTAHfkE7X1ajNJI/hvyXu4ct78JC4V1yWM7429MB8gP43CF7kj/hbzjz XWnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from :arc-authentication-results; bh=4V8jn2IwenSeNL3rmL9IYFZQ0UfPh2TPbuDKvxPnZnQ=; b=gMAvYZEeEA2hQcOliv4I8gllo3P8BHrWYQbQzZ56ep/BRpDeLerI5EBvmtLhBunItR ZvtArKUnwhtOV1vQCS2xrflF/YP+u6YIJQBf3XVn5iuUdZvecTxOMEzMJGT6c42pEE7D DyzeV8ZyzdT9gHjHuaQ9pO3xYA9D/kRaAkGCCWrl370PK4bB1DuiFbFjPIopi1ZGWjKq bEuyRlzhm1wHv/gwhgGOLDHuG41nkjD9OJ5BDAAneukz9diVdftcbKgZaS+W7B5WvOUl YiE0gS1ayYskPCLh4OqjtqAQzx6Fg0ZTGTtPrhBbmqTC2MSIXDIjgoqgPEj2ACSC5sT8 Y9kA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j10-v6si14787943plg.396.2018.05.21.14.04.32; Mon, 21 May 2018 14:04:47 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751485AbeEUVEV (ORCPT + 99 others); Mon, 21 May 2018 17:04:21 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:51992 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751056AbeEUVET (ORCPT ); Mon, 21 May 2018 17:04:19 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 14EF2C12D9; Mon, 21 May 2018 21:04:19 +0000 (UTC) Received: from segfault.boston.devel.redhat.com (segfault.boston.devel.redhat.com [10.19.60.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 06E6810E51A9; Mon, 21 May 2018 21:04:17 +0000 (UTC) From: Jeff Moyer To: adam.manzanares@wdc.com Cc: viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, axboe@kernel.dk, bcrl@kvack.org, 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@infradead.org Subject: Re: [PATCH v5 4/5] fs: blkdev set bio prio from kiocb prio In-Reply-To: <20180521160147.2372-5-adam.manzanares@wdc.com> (adam manzanares's message of "Mon, 21 May 2018 09:01:46 -0700") References: <20180521160147.2372-1-adam.manzanares@wdc.com> <20180521160147.2372-5-adam.manzanares@wdc.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-PGP-KeyID: 1F78E1B4 X-PGP-CertKey: F6FE 280D 8293 F72C 65FD 5A58 1FF8 A7CA 1F78 E1B4 X-PCLoadLetter: What the f**k does that mean? Date: Mon, 21 May 2018 17:04:17 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Mon, 21 May 2018 21:04:19 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Mon, 21 May 2018 21:04:19 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jmoyer@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org adam.manzanares@wdc.com writes: > 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)) { Forgot to mention, you should also convert __blkdev_direct_IO_simple. -Jeff