Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp638735imw; Wed, 13 Jul 2022 05:29:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vCK2n6Yx3cFZuz2fRpaf7JL5rCiMeIaGDaukKWlPiZwI+weib+kNZN+EwDWol3xF6DjTeX X-Received: by 2002:a17:907:a075:b0:72b:33e7:d63a with SMTP id ia21-20020a170907a07500b0072b33e7d63amr3128731ejc.533.1657715340214; Wed, 13 Jul 2022 05:29:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657715340; cv=none; d=google.com; s=arc-20160816; b=GRIW3/DNuVKp1r/PUlG+eoN3YN1p+xDlV08Phq2mUEmmC+p4bBxby+x4wRyhFo9hZa KsMCdozbVw8ErFNGlNtCWWh9Jn747+ddw55Qy/82zMkUZoMwtXnJMJvc0/f1KqE2DKJE nyF3gYUUHMC8r4ABON8d3k2DgRHqeU8YLcBmwudABwzQdJF9tB8Hhx4awLjMwwWzsOTF vatYNkFv6s4oS4jhxEiEC/OCA6wd46D+GVZFrsEgy0eojaryeBHqqzm7tMJEdEmBUyjC plSMHZmGj1+HnPtW/q+Z5rhMuXVjE6Myi2YIuqn5PRawSckBPw68cJnav+LUfGseyYEA v+YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=qXqGFu8U4gPDVSr/ggPX1zJdQr5HzeAZdYNrxVaBP2U=; b=euLPiPfbvNGwKV30GSOuvksqYZtYlnZVht/w1JIT/ibHdvITVZ5lvjOKSkdCPgOMQU nyoKAmUjLyMnBLvhH95jbtiBfzFdpbH90KUPxLV0R4FxfCSVJ7WAW3i+rFwsr1Lyswbb E4RyhhLH8D/JOdIsu1mAPMQXyDxQhMX+V0Q9lyM190KCafn1BwlWoo84C0gt0oFboKQs bZ2tL1vZUFbwDnK45oKgdyvcr1jlwQcU8QfPfor/fpESmO2ET716JMNejzH2UqwO6qNF 0+HxSfXO4Avl4bsv9GLaT+G6k8GrVttqlK07XF3AySl4cQfMt3mVQ7bSHBf3cN5dVV/t Aa/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linbit-com.20210112.gappssmtp.com header.s=20210112 header.b=vTibGfqb; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr24-20020a1709073f9800b0072b3cde0ce8si15643423ejc.471.2022.07.13.05.28.31; Wed, 13 Jul 2022 05:29:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linbit-com.20210112.gappssmtp.com header.s=20210112 header.b=vTibGfqb; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235860AbiGMMZ5 (ORCPT + 99 others); Wed, 13 Jul 2022 08:25:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235645AbiGMMZq (ORCPT ); Wed, 13 Jul 2022 08:25:46 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9948CE5849 for ; Wed, 13 Jul 2022 05:25:42 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id m16so13850202edb.11 for ; Wed, 13 Jul 2022 05:25:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linbit-com.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=qXqGFu8U4gPDVSr/ggPX1zJdQr5HzeAZdYNrxVaBP2U=; b=vTibGfqb8AoB8dfwXHh8bxVf5FbFeYJTrOLebeWcAQTsARpBmyHDJEnUnBIrIfttvA r3uR8GsvihZGcnixyJ1ybBzhizpsWGC8XNv0eah0RCuuKzDmiAti20pRwJemgLF+BEVc ehKpt9RsXGhj8HC0ZOoluR+VGr8i6Ga8NNvsMXbCqi6yI57KT9Rt3agP9JXsB/Han+gK zlfO+6gnu5fZbFAJFUVBzLfGv6wM7uLmp/82YfF6L0pZCUM5prM7HSQT6YHfrk27znqQ xp645/qTAw+03mufD09Axo2GVH6ifvt1mOsvsUAtOalPKP2vZRehwNJrzk4M4k10rqJY g68Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=qXqGFu8U4gPDVSr/ggPX1zJdQr5HzeAZdYNrxVaBP2U=; b=I31+Ptf493IOzdSdnkqgzog6jFU3exz5vLxQ07AnOrvwUjg4gyTZI9OlcAfZuVbneS NtaI0UNuJ9zCgkImVd9odv3Qly52lIj8L8qtW8qBZ1M2xtBL170b6WgSiEolQc21Ehec NazN7CBGV+w21ADhRfFGcHHKOuzMFydZpAlWVFZftdcTpq7Uu99zsApzBOcAYA67eYg9 tRF5paZNrDQZYH+XCUgXduEzU1/qUvz8oI5zVQpRFJI/KzeBBxK0f1N7u4OCC3sgATsM 1CQ9d423hf9Z2FDYYSVExMdTKHXSuOD7EB4vCysNNHueQeSrC3i2ReXpomBTSAcjWgWo 1Taw== X-Gm-Message-State: AJIora+cdMa/WuOf249y2bqXeCwvsS7AaocyitOHbzwXEWmJj1IMHqQ2 tl1assFD+gq1RsD/g1nv+DD/iw== X-Received: by 2002:a05:6402:354c:b0:43a:dc59:657 with SMTP id f12-20020a056402354c00b0043adc590657mr4381358edd.405.1657715140797; Wed, 13 Jul 2022 05:25:40 -0700 (PDT) Received: from [192.168.178.55] (h082218028181.host.wavenet.at. [82.218.28.181]) by smtp.gmail.com with ESMTPSA id k5-20020a17090632c500b0072aa014e852sm4924686ejk.87.2022.07.13.05.25.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Jul 2022 05:25:40 -0700 (PDT) Message-ID: <1304fd58-1577-3f27-0ee8-64964bd54467@linbit.com> Date: Wed, 13 Jul 2022 14:25:38 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH 3/9] drbd: stop using bdevname in drbd_report_io_error Content-Language: en-US To: Christoph Hellwig Cc: Jens Axboe , "Md. Haris Iqbal" , Jack Wang , Song Liu , Theodore Ts'o , Andreas Dilger , Jan Kara , Mark Fasheh , Joel Becker , Joseph Qi , linux-block@vger.kernel.org, drbd-dev@lists.linbit.com, linux-raid@vger.kernel.org, linux-ext4@vger.kernel.org, ocfs2-devel@oss.oracle.com References: <20220713055317.1888500-1-hch@lst.de> <20220713055317.1888500-4-hch@lst.de> From: =?UTF-8?Q?Christoph_B=c3=b6hmwalder?= In-Reply-To: <20220713055317.1888500-4-hch@lst.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Am 13.07.22 um 07:53 schrieb Christoph Hellwig: > Just use the %pg format specifier instead. > > Signed-off-by: Christoph Hellwig > --- > drivers/block/drbd/drbd_req.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/block/drbd/drbd_req.c b/drivers/block/drbd/drbd_req.c > index e64bcfba30ef3..6d8dd14458c69 100644 > --- a/drivers/block/drbd/drbd_req.c > +++ b/drivers/block/drbd/drbd_req.c > @@ -523,16 +523,14 @@ static void mod_rq_state(struct drbd_request *req, struct bio_and_error *m, > > static void drbd_report_io_error(struct drbd_device *device, struct drbd_request *req) > { > - char b[BDEVNAME_SIZE]; > - > if (!__ratelimit(&drbd_ratelimit_state)) > return; > > - drbd_warn(device, "local %s IO error sector %llu+%u on %s\n", > + drbd_warn(device, "local %s IO error sector %llu+%u on %pg\n", > (req->rq_state & RQ_WRITE) ? "WRITE" : "READ", > (unsigned long long)req->i.sector, > req->i.size >> 9, > - bdevname(device->ldev->backing_bdev, b)); > + device->ldev->backing_bdev); > } > > /* Helper for HANDED_OVER_TO_NETWORK. For the drbd part: Reviewed-by: Christoph Böhmwalder Thanks. -- Christoph Böhmwalder LINBIT | Keeping the Digital World Running DRBD HA — Disaster Recovery — Software defined Storage