From patchwork Thu Mar 9 08:42:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Christie X-Patchwork-Id: 9612731 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 E3EAE604DD for ; Thu, 9 Mar 2017 08:42:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C018028522 for ; Thu, 9 Mar 2017 08:42:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B50B4285B5; Thu, 9 Mar 2017 08:42:32 +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=-6.9 required=2.0 tests=BAYES_00,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 4B486285B0 for ; Thu, 9 Mar 2017 08:42:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752625AbdCIImT (ORCPT ); Thu, 9 Mar 2017 03:42:19 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57282 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752458AbdCIImR (ORCPT ); Thu, 9 Mar 2017 03:42:17 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9F489C067C28; Thu, 9 Mar 2017 08:42:13 +0000 (UTC) Received: from rh2.redhat.com (ovpn-120-160.rdu2.redhat.com [10.10.120.160] (may be forged)) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v298gBdf017045; Thu, 9 Mar 2017 03:42:13 -0500 From: Mike Christie To: target-devel@vger.kernel.org, nab@linux-iscsi.org Cc: Mike Christie Subject: [PATCH 2/4] tcmu: do not display hw max sectors twice Date: Thu, 9 Mar 2017 02:42:07 -0600 Message-Id: <1489048929-7992-3-git-send-email-mchristi@redhat.com> In-Reply-To: <1489048929-7992-1-git-send-email-mchristi@redhat.com> References: <1489048929-7992-1-git-send-email-mchristi@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Thu, 09 Mar 2017 08:42:13 +0000 (UTC) Sender: target-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: target-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The patch: e0455fd3ae875a25e78da8325dc62385d62ce04b added HW max sectors support to tcmu, and added another hw max sectors field in the show_configfs_dev_params data and it was actaully displaying the block size instead of max sectors. So this patch just drops it since hw max sectors is already printed by lio core. Signed-off-by: Mike Christie --- drivers/target/target_core_user.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/target/target_core_user.c b/drivers/target/target_core_user.c index 9e6bb8a..4339ab2 100644 --- a/drivers/target/target_core_user.c +++ b/drivers/target/target_core_user.c @@ -1135,8 +1135,6 @@ static ssize_t tcmu_show_configfs_dev_params(struct se_device *dev, char *b) bl = sprintf(b + bl, "Config: %s ", udev->dev_config[0] ? udev->dev_config : "NULL"); bl += sprintf(b + bl, "Size: %zu\n", udev->dev_size); - bl += sprintf(b + bl, "HW Max Sectors: %u\n", - dev->dev_attrib.hw_block_size); return bl; }