Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp764258imm; Mon, 21 May 2018 14:01:00 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqNTyvlLoRHbZuCKLXEkFqD372oUVfVxfB3scYaUYlSKeP7q3v33H64JynRzb64aWL3LIua X-Received: by 2002:a63:7a5a:: with SMTP id j26-v6mr9161873pgn.421.1526936460462; Mon, 21 May 2018 14:01:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526936460; cv=none; d=google.com; s=arc-20160816; b=WR7PfKNMsH6QX43QUDjZPFVp9PBOeNye3EF5McFTJ3dJsHscc/Gc0oHqV5xWY3/3gw D6+tcgVuC16zmyg7HytBiTecJfyJRMR17HcR0RI5WSM1EriZFMHMEAj9FEfq9Ga4rGUN 3gFm2UIKBAalRlB8yyYmaF2qxSwPb0FkBCVG97JAkBaN9KSm+JEpgM45AJsHcqTnIsrQ edZPyLfA/pisSmCSaCzooVnby3Ps3NjFdT8m+OBpPRNMQ/B3GaueNjfictFr8QnrZoHT ouc1udgJ75DPkiltXTEmcb5YR4gkrhuuVEB4aeamKucB9bHJEki5T/u7SkEnribddVbI yllA== 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=VnVg3iohqK3dgs2t1IQA3dZUkNf/YGOJPr4/B0CQgRM=; b=L15EF9WhIYgXgwOWK0xMYZoaJL4fMuE/ATCWwUy9q1MfBN3H/jEz1uMB2GcioXwPOk rPCNzbXhC4AaQwk+Iw5iOSfKgIqAqVJZgtd0TUyOeEZhO61iWBi/3va27+NI/5b02XZh qWBOnbh/JNmwAGsmcREqOxADu8LqsEdUtTeI34qYB5yxnu2EkKAwU1EBQf7251M1UquZ SWeMGy0fCPPifESPKQRT1wa/EEQxGpPusFF6xoz/TCWmyoIfGljCNMGTKapMi7kdDX8a oOUfIPelvZ/coUOLBk5uqOSFC8T0ByVjHp3W/chRnYv6ogMPpSUYQ7tKbTm4tv4gbfeN nKGg== 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 d9-v6si15148987pls.334.2018.05.21.14.00.46; Mon, 21 May 2018 14:01:00 -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 S1752128AbeEUU73 (ORCPT + 99 others); Mon, 21 May 2018 16:59:29 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:34148 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752044AbeEUU71 (ORCPT ); Mon, 21 May 2018 16:59:27 -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 59E8481FE163; Mon, 21 May 2018 20:59:26 +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 6984B10E51A9; Mon, 21 May 2018 20:59:25 +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 5/5] fs: iomap dio set bio prio from kiocb prio References: <20180521160147.2372-1-adam.manzanares@wdc.com> <20180521160147.2372-6-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:25 -0400 In-Reply-To: <20180521160147.2372-6-adam.manzanares@wdc.com> (adam manzanares's message of "Mon, 21 May 2018 09:01:47 -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.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Mon, 21 May 2018 20:59:26 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Mon, 21 May 2018 20:59:26 +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 during direct IO. > > Signed-off-by: Adam Manzanares Reviewed-by: Jeff Moyer > --- > fs/iomap.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/fs/iomap.c b/fs/iomap.c > index afd163586aa0..65aae194aeca 100644 > --- a/fs/iomap.c > +++ b/fs/iomap.c > @@ -919,6 +919,7 @@ iomap_dio_actor(struct inode *inode, loff_t pos, loff_t length, > bio->bi_iter.bi_sector = > (iomap->addr + pos - iomap->offset) >> 9; > bio->bi_write_hint = dio->iocb->ki_hint; > + bio->bi_ioprio = dio->iocb->ki_ioprio; > bio->bi_private = dio; > bio->bi_end_io = iomap_dio_bio_end_io;