Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2538078imu; Thu, 29 Nov 2018 06:34:43 -0800 (PST) X-Google-Smtp-Source: AFSGD/WN06hYZaFuJRNbGri6zwl1/vQwqus+Pa6IKZrnwBac1y5pTRlgi/375dymaWl/xsoT9sXi X-Received: by 2002:a63:8149:: with SMTP id t70mr1496640pgd.172.1543502083511; Thu, 29 Nov 2018 06:34:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543502083; cv=none; d=google.com; s=arc-20160816; b=e63yaTXPNNbm35anLDeJNUw+ui0NdX5N2UbMc/DI31uRfy73hYfAA0zJ8LqXhYAdZg amMzX7Ug3+S6CWdjQXNrknD3knRhTEfPwpYPIWtyVDvLZOuWavoVUXf9L+gGzP9HHaHw kLv+GGZNC79iByr/cxZO9wg60O+rYCt4qViAxn9hTEk4SKSHACUds3tBLs+lz3jjxkae 5v+M8n6PPGYGbQEDvqb65deYMlzmK3e1zA9rcXVxFH2UQ2GoNI+HITIGi3xzfvfKR3w7 uYmWGYACKtFuzJJrTbNwpEI1ILI9JOURF6wsEUGy1qSPOarmI9qyfXd0jjcorPRmC98M iPYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=N1gYOWnao0z/t4v1B7g6K05VivS+d9XwchBv6x8Q5ro=; b=xWZAyjVdxO5sPLGE8QqMzLcQmUyR0npnzAwjnM34vZJMfPTVpmQDVIEEDY5/7jXBbT KciU40XCzLMdcLAzQxC+eVvGy5OutNOFjUinAaj6ySCM//0ElT0tJtzPuNLXKz332vhM 46PFrhwqw0RO8EZxaTZ3Q6ockEBbn8VHMY0KVuQX3T0+fBTZJP3dfe1DCZ8eAVSle9ys DOCrg3hcCz218dBOZqILVrTEVG7lDZjVbwGwqY6PW036g8LyEvI3/PmTW87bXxCu7lPe NHXvZDsL1U/By4UFytQhdA8dahSvimP47DuAqYD+R6W/gyWUiPCCjbuWNe/Mq39CefsB sPQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=r6ZeDV4F; 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 d1si677087pla.412.2018.11.29.06.34.28; Thu, 29 Nov 2018 06:34:43 -0800 (PST) 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=pass header.i=@kernel.org header.s=default header.b=r6ZeDV4F; 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 S2389217AbeK3BhP (ORCPT + 99 others); Thu, 29 Nov 2018 20:37:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:40076 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389206AbeK3BhO (ORCPT ); Thu, 29 Nov 2018 20:37:14 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 18497213A2; Thu, 29 Nov 2018 14:31:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543501901; bh=rwC38LokT2j/t5MyPD8tk08rx2NAheZSSvNKbhmDA+I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r6ZeDV4FBairP4QPuZQxSXeb70EAit3zu3b1MYf3GSOibAgqLxhxQ8rCSwO7rfSe9 ZY3mxJt95EGuc0FQ4r/AQ1Aafpbm496UZdQ+/ISofRYswyuzEl5QtjEw+wwzCm4+ky l6fU/XggrQDfc8Rdc89pdv0WWNcRPwAdyGPVXKSQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hannes Reinecke , Jean Delvare , Jens Axboe , Sasha Levin Subject: [PATCH 4.19 086/110] block: copy ioprio in __bio_clone_fast() and bounce Date: Thu, 29 Nov 2018 15:12:57 +0100 Message-Id: <20181129135924.729620738@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181129135921.231283053@linuxfoundation.org> References: <20181129135921.231283053@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit ca474b73896bf6e0c1eb8787eb217b0f80221610 ] We need to copy the io priority, too; otherwise the clone will run with a different priority than the original one. Fixes: 43b62ce3ff0a ("block: move bio io prio to a new field") Signed-off-by: Hannes Reinecke Signed-off-by: Jean Delvare Fixed up subject, and ordered stores. Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin --- block/bio.c | 1 + block/bounce.c | 1 + 2 files changed, 2 insertions(+) diff --git a/block/bio.c b/block/bio.c index 41173710430c..c4ef8aa46452 100644 --- a/block/bio.c +++ b/block/bio.c @@ -605,6 +605,7 @@ void __bio_clone_fast(struct bio *bio, struct bio *bio_src) if (bio_flagged(bio_src, BIO_THROTTLED)) bio_set_flag(bio, BIO_THROTTLED); bio->bi_opf = bio_src->bi_opf; + bio->bi_ioprio = bio_src->bi_ioprio; bio->bi_write_hint = bio_src->bi_write_hint; bio->bi_iter = bio_src->bi_iter; bio->bi_io_vec = bio_src->bi_io_vec; diff --git a/block/bounce.c b/block/bounce.c index 418677dcec60..abb50e7e5fab 100644 --- a/block/bounce.c +++ b/block/bounce.c @@ -248,6 +248,7 @@ static struct bio *bounce_clone_bio(struct bio *bio_src, gfp_t gfp_mask, return NULL; bio->bi_disk = bio_src->bi_disk; bio->bi_opf = bio_src->bi_opf; + bio->bi_ioprio = bio_src->bi_ioprio; bio->bi_write_hint = bio_src->bi_write_hint; bio->bi_iter.bi_sector = bio_src->bi_iter.bi_sector; bio->bi_iter.bi_size = bio_src->bi_iter.bi_size; -- 2.17.1