Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3442037imu; Sun, 11 Nov 2018 15:11:12 -0800 (PST) X-Google-Smtp-Source: AJdET5dqs3mOdWthmY+RbiIsvy46OPAKV6qTdF1JBQrwASWKogXWwCds5ZjIeg1a48Zsj11pjSlh X-Received: by 2002:a63:3f44:: with SMTP id m65mr15792535pga.115.1541977872382; Sun, 11 Nov 2018 15:11:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541977872; cv=none; d=google.com; s=arc-20160816; b=04KEH6TRXYYB6RyihXOLp8pU9TiYppHn++CWR0qCQue5Lg+pIZvYOPtlZt486FXx56 Ut3AfNEDzkZQxEX0n6vYu+Ii0AV0/yvjP+l92NeH9kwU7925ix9omhAGKMdCMFL9Wjvb zg0T5JcOwDm6sOr2no5/vq/RF5QtNEsrxH1zDi6um5V2gsrHph0T1EZjonTBTDTVsWda OjyGyi9LRwQfyZevhUzXGFduknBh0uC99sYdFYcN5Y2QtfAQMlUsBMUquTRIPeMpk3jT 4P0s/ap3P0SIjc5Im+Veb5w5wMsU1WmE5oPAGPIimRsxjAovKd8r+uFOItw1XMNPOpVN z6KQ== 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=7oG57CYbTwQtqaUgwyhODj+MtF7xSexl5Gd2mblWQ5A=; b=HmBNBQ3CBg7yRD9dD1FfcVWKephOTTHbhtVOeiRk6+4FNhbAik0em6O3hk6Js6Egx+ BfQT1+qVcdTxUFZKov5gfmywcclNIFRZIB7qeD4wzjZN9rut6987WPT6iH1EPGncPafl /g4EG+IiUe9i6vez8DbQRw41ugIvaZbQkW24KUJEsFOGUe0aSBoj8tKDkRCppCRRhDdH xGHz3Px1VEp5vZCmEXezTSXrzWiC7LrjU8zCOqJPK190iLAXo9dazBYbVoRJ8fQqNJnd j9YoCcTIV/Q1mQf72gMElDb+XinWkZTz2dBEnyqEBRho4Mjt2tf9ib0MyQ1lTgQzEsAm 2i7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QYpmWmsG; 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 m21-v6si13672185pgh.167.2018.11.11.15.10.57; Sun, 11 Nov 2018 15:11:12 -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=QYpmWmsG; 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 S2390311AbeKLI7d (ORCPT + 99 others); Mon, 12 Nov 2018 03:59:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:51070 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390228AbeKLIWD (ORCPT ); Mon, 12 Nov 2018 03:22:03 -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 22515223C8; Sun, 11 Nov 2018 22:32:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975526; bh=wqxXKzaUJi3VzdDqZLdolrZsfs5QOnqNukBxT1v2KTI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QYpmWmsGrYxwm/aohOxw4zruLqnSxqR6SjsT4T9TiUc0+wqBfxzFO/vj0Dhz0dTA+ wXHy18azvK4FWawk59UyoEDTif2+vwcdaYZov3GmjhjzxAmNq0+RIphQDUA4GY+nI0 KsAw12k8Im5gbHESa57iHkGdFcb/aEMKU0NX7qx4= 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.14 003/222] bcache: trace missed reading by cache_missed Date: Sun, 11 Nov 2018 14:21:40 -0800 Message-Id: <20181111221648.108037012@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221647.665769131@linuxfoundation.org> References: <20181111221647.665769131@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.14-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 @@ -792,7 +792,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);