[PATCH 2/4] tcmu: do not display hw max sectors twice

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <mchristi@xxxxxxxxxx>
---
 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;
 }
-- 
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux