From patchwork Mon Apr 4 05:06:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shaun Tancheff X-Patchwork-Id: 8737481 Return-Path: X-Original-To: patchwork-linux-scsi@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 5ADE09F336 for ; Mon, 4 Apr 2016 05:07:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9DF2320204 for ; Mon, 4 Apr 2016 05:07:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D1234201FA for ; Mon, 4 Apr 2016 05:07:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752524AbcDDFHC (ORCPT ); Mon, 4 Apr 2016 01:07:02 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36434 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752200AbcDDFG4 (ORCPT ); Mon, 4 Apr 2016 01:06:56 -0400 Received: by mail-pf0-f196.google.com with SMTP id q129so20128598pfb.3; Sun, 03 Apr 2016 22:06:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=WTmG9qbgPqbuMSUWl+tqPogKTNY/PC2ExO/G1qA5ERY=; b=epX35PZALF2wJIyDHj/KVHuW4NEX3lJpvkRkzfUvwbysr5BlXgS4A61R86Y76T0Z99 HRc99NpKgF5UDJPi8j1jLej2a5g4WwyHd6sUmgjh/ivOgID9tnQo2h5JsrbWykLuYjOu 3gGwSMF9zZgjacLruNAA03wAILyG8mDxPr1vwQLEgD7RiIa7SYYPqLTVP31JlRrRCpi3 QSOeXepXYRPnY2Tlyqw2WMVHBGMB5X0eOLA9wisWLVfV2MGCRhdjpBaM503NIruddKP4 2WXp+tim8q9miXqhHooaYhXNB5yUzG6zd5dYGPRy6/S4V/pAJTNuRRSEyGjCk3ZySPbC 9b+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=WTmG9qbgPqbuMSUWl+tqPogKTNY/PC2ExO/G1qA5ERY=; b=Y5+fW2lXKoUbWWYnAnbAzCkGR6uHA5aBMZ3xJg5NP4czQeLYzP5zFTVIq+YS7CkBoU 1eiZr0x29pEne9a6CBRGkh200ZvrABteUqJSBeXOEmOP9YsxqXQtB7ja7x1WXLIWIhZt 1yMzGay5mkHqoyt+wU+2X4Ni6Im/SJIYEfx/Ojbxlo2kuI9IkaPMTRy8Uz7X1xcCBekD JDxsBaGCYfBcEd2rqvTZatXCdB+iae0eXH3KgPJFY0bp/BdW4a+MxjLG9uEceg2rxPLU JCdNs+Nmy+VpuIMVlRdS//np0Nc3vnefi0rJY+7QSRo3N9E9VcZ7mmMrQ6locRTCS3Rr UJ7w== X-Gm-Message-State: AD7BkJIyEYqy+J/glvThQonNmf8qVBTKXhCOrphMrYU76QsTxbENDfNkuERktinkakv6IA== X-Received: by 10.98.8.196 with SMTP id 65mr17515037pfi.53.1459746415553; Sun, 03 Apr 2016 22:06:55 -0700 (PDT) Received: from localhost.localdomain ([103.47.135.1]) by smtp.gmail.com with ESMTPSA id k65sm35804188pfb.30.2016.04.03.22.06.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 03 Apr 2016 22:06:54 -0700 (PDT) From: Shaun Tancheff To: linux-ide@vger.kernel.org, dm-devel@redhat.com, linux-block@vger.kernel.org, linux-scsi@vger.kernel.org Cc: Jens Axboe , Shaun Tancheff Subject: [PATCH 08/12] RAID 4/5/6: Indicate parity blocks as 'META' Date: Mon, 4 Apr 2016 12:06:12 +0700 Message-Id: <1459746376-27983-9-git-send-email-shaun@tancheff.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1459746376-27983-1-git-send-email-shaun@tancheff.com> References: <1459746376-27983-1-git-send-email-shaun@tancheff.com> Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,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 From: Shaun Tancheff It is useful for ZDM to know that a block is part of a parity stripe as parity stripes are deemed to be hotter and more prone to becoming stale. ZDM will co-locate META bios to alternate streams. Signed-off-by: Shaun Tancheff --- drivers/md/raid5.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index b4f02c9..c96655e 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c @@ -937,6 +937,8 @@ again: rrdev = NULL; } if (rw & WRITE) { + if (i == sh->pd_idx || i == sh->qd_idx) + rw |= REQ_META; if (replace_only) rdev = NULL; if (rdev == rrdev)