Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1718611imm; Tue, 22 May 2018 08:17:18 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqpGIKeevOxBGoFHbicro/xL2javsfIIK2UKBiOPVUG/Z2dL4+pWW8QX7K1G+GRSyllKDRP X-Received: by 2002:a17:902:7c0e:: with SMTP id x14-v6mr25762433pll.389.1527002238075; Tue, 22 May 2018 08:17:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527002238; cv=none; d=google.com; s=arc-20160816; b=Eqg9d5BrfxgEMHTlndDjKOEC5xxUw/p3nvYuHAYMHI0YN3yGs1jH6ycs/g8o2OVlQP 0BLYsZFWK5/hQYu5hnGNo/8tq0barMesTWKzqPJqy63loqiA1Moh0vS9X0KXPrks5EHW E0j9dNG0A/OiQe31e9lH1mvJVkk043W4U3xbhehlxU5z2yEIMFTLVUxjBYvhas24MsP7 ici1/cL1AoOY44slsd6S2WzaZDkH/QvvyFr8/C/yc5DPCo4wN9IqPaHyQI6IpDyRfZzE fB1QEtkKbXHNm6i0my0P0jXjLV57RbV9t0OgsijI8jtN8bvUELSfBzCbih0lZkqrOE8H 2fvA== 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=nPfwTbjz7n5wpCj+2SBzBqqig7aRKKy+gbzGq9SmbHk=; b=h0FiF+AZzkYvkN03ihsDfVsBj1bTVtR/9GDPUsfmYnnDmLKjaUB6U75AJxOBChVF+m kF8lXnjnRRHhb7ODMiou7MAwXoj0CaV4ABJWekxLobGdyipoPG0ZNSp6gzj/Y12KwprB /g+CqbGMs1a/LG92PV6qf4RcYUjXCqNSDSaLrQcgWX/XuGyfRBaZcugzNGs2vagOrtSP fsCLIyplTCjQjgDSS89OWG9ZYSGUu+EXbj4cA7sT92ChEk0dogOfhyT37H0I1JPtI7/3 uUlFkyZub5E8eMCcseQYGuSoAKMrGtnM0j4fSjSbx/Fn+fPEmqNIZPl1+KejtgVU9FmF 0glw== 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 v24-v6si17193576pfj.292.2018.05.22.08.17.01; Tue, 22 May 2018 08:17:18 -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 S1751921AbeEVPQR (ORCPT + 99 others); Tue, 22 May 2018 11:16:17 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:33086 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751339AbeEVPPe (ORCPT ); Tue, 22 May 2018 11:15:34 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4F0AB7D84D; Tue, 22 May 2018 15:15:33 +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 C0DEB2024CAD; Tue, 22 May 2018 15:15:31 +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 v6 4/5] fs: blkdev set bio prio from kiocb prio In-Reply-To: <20180522150737.9893-5-adam.manzanares@wdc.com> (adam manzanares's message of "Tue, 22 May 2018 08:07:36 -0700") References: <20180522150737.9893-1-adam.manzanares@wdc.com> <20180522150737.9893-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: Tue, 22 May 2018 11:15:31 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Tue, 22 May 2018 15:15:33 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Tue, 22 May 2018 15:15:33 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.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 Reviewed-by: Jeff Moyer Thanks! Jeff > --- > 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)) {