Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp763542imm; Mon, 21 May 2018 14:00:33 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpH43O9Y5zCTMB2xEd3J4atx23bjw5w7CUZKvgFFB20XrujH7q1dhElioof/7u8X2fPyPmy X-Received: by 2002:a17:902:7406:: with SMTP id g6-v6mr21212528pll.237.1526936433591; Mon, 21 May 2018 14:00:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526936433; cv=none; d=google.com; s=arc-20160816; b=cgPgy1zY1aV4Sw2efqZNHRWH4gWCdZXdwz2t8S4h9A21HUtRyUb/tLKlq862hkBHV5 zvi0wfd5oB7hIJvd2k4fkA/d6w+V6v74kMFmvdB/yYEvw80fNPhzKMdPf4SWi3H6WDcm TH26o8dewzvwkNbmQ9+kt0a1R7vPpIMRe4iFV0+PtFD+x+YeppNScomVcp6U31mnA1rM uhfz9SriQw98Nct2T7Pi2DvTSnFehPpJzrugDtpnErOZPsM8qAoRz+q4HG51bzeGKYgz 5nFAQtO0I+3NvXDld20fibXFefemQ5fpvUsPeK/IgAUys7MFi/LCBRVWwoJ6zeNXnxQR vIEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from :arc-authentication-results; bh=JEKytjO8XEGuuf6q6+OMiek8yVWJrwcjXLvsFFn1uGQ=; b=iKqaSVhgE6bHX9w6K1HXtXlBbaCw1eWVtnkkQbpx6oSomPDoRwO95559i+tvzHOxUd 5dH2onPmU2IElSS423Jjvph+QRrr4QV9unaf7U+DdBuQH52Av8F1NwK1dqKfBpYONPdF H2jj+uvnxaHG9Jf7pKI1oxSVYg/mqPsMtmUYv9su42n5Vknb2LtQT4XdGCS4NesIEKox EDQw4oovoPWIlCG3f/0/prPPFcUYTzyPJcy/8IrgTkPAEaSLJ4whLDNxej5ZuHvJNSSC nrs4qotz2RKpIpDJcXYGZ+qtH5exJv3lra9oduupF6QFzlnLYMiWDevKfmNiKY0/Ya+y ZwUg== 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 u12-v6si14773158plz.563.2018.05.21.14.00.18; Mon, 21 May 2018 14:00:33 -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 S1751967AbeEUU7H (ORCPT + 99 others); Mon, 21 May 2018 16:59:07 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:35872 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751087AbeEUU7F (ORCPT ); Mon, 21 May 2018 16:59:05 -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 826674025961; Mon, 21 May 2018 20:59:04 +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 92FC72023582; Mon, 21 May 2018 20:59:03 +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 References: <20180521160147.2372-1-adam.manzanares@wdc.com> <20180521160147.2372-5-adam.manzanares@wdc.com> 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 16:59:03 -0400 In-Reply-To: <20180521160147.2372-5-adam.manzanares@wdc.com> (adam manzanares's message of "Mon, 21 May 2018 09:01:46 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) 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.6]); Mon, 21 May 2018 20:59:04 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Mon, 21 May 2018 20:59:04 +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 > --- > 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)) {