From patchwork Wed Dec 20 17:22:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Matias_Bj=C3=B8rling?= X-Patchwork-Id: 10125987 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BB8CF60245 for ; Wed, 20 Dec 2017 17:23:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A31ED28A18 for ; Wed, 20 Dec 2017 17:23:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A1BE129718; Wed, 20 Dec 2017 17:23:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2F39C28A18 for ; Wed, 20 Dec 2017 17:23:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756022AbdLTRXF (ORCPT ); Wed, 20 Dec 2017 12:23:05 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:42300 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756015AbdLTRWi (ORCPT ); Wed, 20 Dec 2017 12:22:38 -0500 Received: by mail-wm0-f65.google.com with SMTP id b199so11381861wme.1 for ; Wed, 20 Dec 2017 09:22:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bjorling.me; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/XWLm8N/OimVhEbUx7hHl88Xfzv1YAmh+rL+LNp3O98=; b=lawdlKhv4k4wTe0WZWqwWfEPv0n6hxlvQw2kH5D/UCHqjV4hCb9lgjxzXsguofRMP8 8VFn5tvZngqnn5HvsI+n+OP3a+e9avbyI5iQYWihDVFyM0yO7b6p1fisCKDo9i7r+1r3 5+CMKIDtMxeLT8YhDqq6NAn7sVu4s0UIf7wNk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/XWLm8N/OimVhEbUx7hHl88Xfzv1YAmh+rL+LNp3O98=; b=eUkShSr4AJxAWmm9PkLdbbmFBvL54TH83g6cLnnL0WGd3bI/q5kGn4vS2dQ3DHLdnn hOvfaSX4EsYL1SMjCn5280TdQOaAJeH2tnn0URRNQ0JhQsME9cD0oSQz4yONh+MQNC6r FiVk1pBku48GxLd+9yWV+oFe6c0+MfuVPCG4JNt0TlBGxho0ISzkIZWkg8VX+SmvdttS 1JMr91S8Foph8pgSV/vwXSg1d52724wRA/c7VI90ZdNwqdYXGcHidt+YVO+AcjivCT32 mjQKPtaSUhBiW+exTFtcImsNlSVo9WRBmdrpiVkPPUQKp0kQm/dZVoEwSUSN2Lv21bv1 S6LQ== X-Gm-Message-State: AKGB3mJljnJYb/nWfr/SE+dWp5SfZCk/UrYlgnbbwOlTPybAUdbl8+Yf 2jFYZDWIjm7rnELG3JYwGV1uyS5w X-Google-Smtp-Source: ACJfBoss8ftntoJrtG5M9tywGOozpit3kiDawC9W+cH76pobWiWWFkv8PCFyiyh60gsOuciVBTNqow== X-Received: by 10.80.145.81 with SMTP id f17mr6462055eda.215.1513790556547; Wed, 20 Dec 2017 09:22:36 -0800 (PST) Received: from skyninja.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id 26sm15339120eds.67.2017.12.20.09.22.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Dec 2017 09:22:35 -0800 (PST) From: =?UTF-8?q?Matias=20Bj=C3=B8rling?= To: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Javier=20Gonz=C3=A1lez?= , =?UTF-8?q?Matias=20Bj=C3=B8rling?= Subject: [PATCH 23/25] lightnvm: pblk: print instance name on instance info Date: Wed, 20 Dec 2017 18:22:03 +0100 Message-Id: <20171220172205.26464-24-m@bjorling.me> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20171220172205.26464-1-m@bjorling.me> References: <20171220172205.26464-1-m@bjorling.me> MIME-Version: 1.0 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Javier González Add the instance name to the information printed out on target creation. Signed-off-by: Javier González Signed-off-by: Matias Bjørling --- drivers/lightnvm/pblk-init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/lightnvm/pblk-init.c b/drivers/lightnvm/pblk-init.c index d603b94..55d3b42 100644 --- a/drivers/lightnvm/pblk-init.c +++ b/drivers/lightnvm/pblk-init.c @@ -1069,7 +1069,8 @@ static void *pblk_init(struct nvm_tgt_dev *dev, struct gendisk *tdisk, blk_queue_max_discard_sectors(tqueue, UINT_MAX >> 9); queue_flag_set_unlocked(QUEUE_FLAG_DISCARD, tqueue); - pr_info("pblk init: luns:%u, lines:%d, secs:%llu, buf entries:%u\n", + pr_info("pblk(%s): luns:%u, lines:%d, secs:%llu, buf entries:%u\n", + tdisk->disk_name, geo->all_luns, pblk->l_mg.nr_lines, (unsigned long long)pblk->rl.nr_secs, pblk->rwb.nr_entries);