From patchwork Thu Feb 11 07:02:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Nicholas A. Bellinger" X-Patchwork-Id: 8276881 Return-Path: X-Original-To: patchwork-linux-scsi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 51708BEEE5 for ; Thu, 11 Feb 2016 07:05:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7049520376 for ; Thu, 11 Feb 2016 07:05:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5B90920373 for ; Thu, 11 Feb 2016 07:05:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751343AbcBKHFn (ORCPT ); Thu, 11 Feb 2016 02:05:43 -0500 Received: from mail-ob0-f179.google.com ([209.85.214.179]:35983 "EHLO mail-ob0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751379AbcBKHFm (ORCPT ); Thu, 11 Feb 2016 02:05:42 -0500 Received: by mail-ob0-f179.google.com with SMTP id ba1so61847059obb.3 for ; Wed, 10 Feb 2016 23:05:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daterainc-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=NDv4yRTHpsFb7XdYGZiBW2TRb5cdHIP9E6yoXzJDAYs=; b=XazfE4DfSn7Nuo65DF/YBkh19vYKcaS/v9TWfgPyKbvh7dw9vy5HpAGEfqG9bFj0U5 0TqQOCOlOfwM8uE/VMANTXrqmzAPjV1X3VoQP8Ba8q8dRtunTQT6HVVV3fRtmrQoIx93 R9eezU60ARazaRVhK4/e542tgmDgnlUQkZ8tQgt1toh1Zdlcbax/tNga8Q6kOrLGraf+ k491R0Oci4JFJbBVqcaBaHJOty17LBDAnAA0rkrPhemZKySPNwmDmB8OnSN/XZdu9jfF 8TTboxj43PXNyML8UCnMGwODizMLpfR6fu1ak7y6Khs8t1EtuWT3cA21I6vb8FM+mZ1D mR+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=NDv4yRTHpsFb7XdYGZiBW2TRb5cdHIP9E6yoXzJDAYs=; b=HRALPmVATZyqHFsaBHIdk4dATdhv+r7duF13mjBlRMGthb4w9vUSqpx2fyRcKZTFRu /yGh7QeAqX13nQJspPpXwrT0EvM6s+I/I7G4X8yIvKk+c4WDyJmcJ7+TKaTs8BXUsizF MMFrFIDZil3jMVYIGZ5FlAONuP94v6l1w5Agi+FzFSOTUnlaVXJsv91lAxtLXtWj4Vea gtHarbgohQiYqMYauKExYriPFVMz8VVszi24peD1h6/Hv1/dLFVBgoQ1rUluQlzsNZO4 9Xn8aj69/CaTlrYGgiglbu7UAQ5SF6gHrGsjb7KSEepVMuOOh2xo1AgtB+wZqz6mCups JSBg== X-Gm-Message-State: AG10YOTg6k1ouYAwgBv8JhbMQIDCua4cdPu0pJBWlTIbQQxN5HTfxngP2/c/lpDqHo1rnA== X-Received: by 10.182.108.229 with SMTP id hn5mr44449780obb.75.1455174341658; Wed, 10 Feb 2016 23:05:41 -0800 (PST) Received: from localhost.localdomain (mail.linux-iscsi.org. [67.23.28.174]) by smtp.gmail.com with ESMTPSA id q3sm4163834oex.12.2016.02.10.23.05.40 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 10 Feb 2016 23:05:41 -0800 (PST) From: "Nicholas A. Bellinger" To: target-devel , linux-scsi Cc: Christoph Hellwig , Jamie Pocas , Nicholas Bellinger Subject: [PATCH] target: Fix incorrect unmap_zeroes_data_store return Date: Thu, 11 Feb 2016 07:02:26 +0000 Message-Id: <1455174146-29700-1-git-send-email-nab@daterainc.com> X-Mailer: git-send-email 1.7.2.5 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.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham 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: Nicholas Bellinger This patch fixes an incorrect return of zero from the new unmap_zeroes_data_store() configfs store attribute handler introduced in v4.5-rc1, to use the correct 'count' bytes return value. Signed-off-by: Nicholas Bellinger Reviewed-by: Sagi Grimberg --- drivers/target/target_core_configfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/target/target_core_configfs.c b/drivers/target/target_core_configfs.c index 3327c49..713c63d9 100644 --- a/drivers/target/target_core_configfs.c +++ b/drivers/target/target_core_configfs.c @@ -898,7 +898,7 @@ static ssize_t unmap_zeroes_data_store(struct config_item *item, da->unmap_zeroes_data = flag; pr_debug("dev[%p]: SE Device Thin Provisioning LBPRZ bit: %d\n", da->da_dev, flag); - return 0; + return count; } /*