From patchwork Thu May 5 15:17:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kara X-Patchwork-Id: 9025251 Return-Path: X-Original-To: patchwork-linux-block@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 0D20A9F1C1 for ; Thu, 5 May 2016 15:17:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 447C220390 for ; Thu, 5 May 2016 15:17:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5C6B62038F for ; Thu, 5 May 2016 15:17:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756227AbcEEPRV (ORCPT ); Thu, 5 May 2016 11:17:21 -0400 Received: from mx2.suse.de ([195.135.220.15]:33847 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757176AbcEEPRV (ORCPT ); Thu, 5 May 2016 11:17:21 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id EBBF7ADB7; Thu, 5 May 2016 15:17:18 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 81F161E09F4; Thu, 5 May 2016 17:17:16 +0200 (CEST) From: Jan Kara To: Jens Axboe Cc: linux-block@vger.kernel.org, Jan Kara Subject: [PATCH 6/9] Zero sectors are strange Date: Thu, 5 May 2016 17:17:09 +0200 Message-Id: <1462461432-1900-7-git-send-email-jack@suse.cz> X-Mailer: git-send-email 2.6.6 In-Reply-To: <1462461432-1900-1-git-send-email-jack@suse.cz> References: <1462461432-1900-1-git-send-email-jack@suse.cz> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Spam-Status: No, score=-9.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Jan Kara --- iowatcher/blkparse.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iowatcher/blkparse.c b/iowatcher/blkparse.c index 78a16e5944c3..c7d1d652c78e 100644 --- a/iowatcher/blkparse.c +++ b/iowatcher/blkparse.c @@ -1097,6 +1097,8 @@ void add_pending_io(struct trace *trace, struct graph_line_data *gld) return; if (action == __BLK_TA_QUEUE) { + if (io->sector == 0) + return; if (trace->found_issue || trace->found_completion) { pio = hash_queued_io(trace->io); /*