Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3494173imu; Sun, 11 Nov 2018 16:22:08 -0800 (PST) X-Google-Smtp-Source: AJdET5fO8y+EZlb5KGibnpwlK/jBMOzjwQAi6dSIwKQhLAHlPK7ISFhX1RS7Gzm4sLNkNmPnvuhh X-Received: by 2002:a17:902:8486:: with SMTP id c6-v6mr17370139plo.119.1541982128185; Sun, 11 Nov 2018 16:22:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541982128; cv=none; d=google.com; s=arc-20160816; b=FFyvgBqmffJ97JAKmdCE7/9URmMXpI61q3FtGZFb/t3dGSe1kI6PS3irQSFTcLlx3l fdmWgNIQlVSv9ygSYnJmkegy2NqNMe6yKkbjfqMyvLwQCRv/4LyO9q3oEqIBc1LK7lkN dGspJm2d3Seofw4dWuRR3e1S1nF7pGNAcNO2B4uZZYqSTDapEp158r6rvVGqtu5zF0oZ beHTCWeCYzpqWQtgvVamZiZb4AobyQJcu4ShqVYwuqmHOvur4jfOr9fjewT8zZZtNZfI Pu7VXVDmSM456YO0yK9Uf3/1OY4KjrMRQIhY4IpfrcFbGY8KkiOUO5Os+0kl0v9/kSP4 h2ew== 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=5f+1x3nnkuxBzt6kBC9d5/T+chmoRrb5iRCF/UvU93Y=; b=dGFkF8sdbhnK2N48oq0VHdiUAkJmKoAJWymI5oB9Sy2ZM9S+rzM+IscgXvFQf+0zMT mt/I0NsB8Ro9+aDnvOOMY0wViaCziSHX9FGNrqgVHlXA6m42QWpiFfM8P1ZZIdDiOcsS zvHWKfLRfJvR48XvyW4886WvJFbnnUVi8A2PczqYI7LK5TG1aMqjdxzuhycd1cE+fASv R+BQkiQ8K6ERfjWWsK+Y/r33SQKWGmdLDbZt0RbtNlgv5uZCPsVUFpOULtafgYSPW4l8 jLJB2kGEoq/ZdDYhA/0Nll12OMkVYswo0Jrp2N3wTcV7XJOav5aT2lvg+tDlSGOUy4/z ywng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=T5nCK+v6; 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 t4-v6si1135745pfj.53.2018.11.11.16.21.53; Sun, 11 Nov 2018 16:22:08 -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=T5nCK+v6; 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 S1729753AbeKLIQw (ORCPT + 99 others); Mon, 12 Nov 2018 03:16:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:58420 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729653AbeKLIQv (ORCPT ); Mon, 12 Nov 2018 03:16:51 -0500 Received: from localhost (unknown [206.108.79.134]) (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 53CBE21780; Sun, 11 Nov 2018 22:26:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975216; bh=i8JBnaJMfH+YgVwo2fWteAMB2oRa1ALZwbXxIuLxhe8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T5nCK+v6dd9YvCeW0XN+QvTMK8jHmpIuj2dXYozQ+/GfQWniA0087jbEvfFOKNoiG VpKyS1Q97xBJf5LwMp7EbEkvjELlg0IqK8w/s3AhNe/G3duEk3TAcZySZy5Y9BuD9e 41D+/cn59oeUTEQAGsWfFCY41JiKG5sIAWgYK+6Q= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tang Junhui , Coly Li , Jens Axboe Subject: [PATCH 4.19 012/361] bcache: trace missed reading by cache_missed Date: Sun, 11 Nov 2018 14:15:59 -0800 Message-Id: <20181111221621.621712332@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221619.915519183@linuxfoundation.org> References: <20181111221619.915519183@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. ------------------ From: Tang Junhui commit 502b291568fc7faf1ebdb2c2590f12851db0ff76 upstream. Missed reading IOs are identified by s->cache_missed, not the s->cache_miss, so in trace_bcache_read() using trace_bcache_read to identify whether the IO is missed or not. Signed-off-by: Tang Junhui Cc: stable@vger.kernel.org Signed-off-by: Coly Li Signed-off-by: Jens Axboe Signed-off-by: Greg Kroah-Hartman --- drivers/md/bcache/request.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/md/bcache/request.c +++ b/drivers/md/bcache/request.c @@ -850,7 +850,7 @@ static void cached_dev_read_done_bh(stru bch_mark_cache_accounting(s->iop.c, s->d, !s->cache_missed, s->iop.bypass); - trace_bcache_read(s->orig_bio, !s->cache_miss, s->iop.bypass); + trace_bcache_read(s->orig_bio, !s->cache_missed, s->iop.bypass); if (s->iop.status) continue_at_nobarrier(cl, cached_dev_read_error, bcache_wq);