From patchwork Mon May 23 00:01:06 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benny Halevy X-Patchwork-Id: 807432 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p4MNucA4000460 for ; Mon, 23 May 2011 00:01:19 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755015Ab1EWABS (ORCPT ); Sun, 22 May 2011 20:01:18 -0400 Received: from daytona.panasas.com ([67.152.220.89]:43565 "EHLO daytona.panasas.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754491Ab1EWABS (ORCPT ); Sun, 22 May 2011 20:01:18 -0400 Received: from lt.bhalevy.com.com ([172.17.33.45]) by daytona.panasas.com with Microsoft SMTPSVC(6.0.3790.4675); Sun, 22 May 2011 20:01:16 -0400 From: Benny Halevy To: Trond Myklebust Cc: Boaz Harrosh , linux-nfs@vger.kernel.org Subject: [PATCH v5 30/38] SQUASHME: initialize data->task on the non-rpc io done success paths Date: Mon, 23 May 2011 03:01:06 +0300 Message-Id: <1306108866-29053-1-git-send-email-bhalevy@panasas.com> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: <4DD99F9B.2040406@panasas.com> References: <4DD99F9B.2040406@panasas.com> X-OriginalArrivalTime: 23 May 2011 00:01:17.0404 (UTC) FILETIME=[8A0029C0:01CC18DC] Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 23 May 2011 00:01:19 +0000 (UTC) Signed-off-by: Benny Halevy --- fs/nfs/pnfs.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c index 0f59802..d39fcca 100644 --- a/fs/nfs/pnfs.c +++ b/fs/nfs/pnfs.c @@ -1064,6 +1064,7 @@ pnfs_ld_write_done(struct nfs_write_data *data) if (!data->pnfs_error) { pnfs_set_layoutcommit(data); + memset(&data->task, 0, sizeof(data->task)); data->mds_ops->rpc_call_done(&data->task, data); data->mds_ops->rpc_release(data); return 0; @@ -1113,6 +1114,7 @@ pnfs_ld_read_done(struct nfs_read_data *data) if (!data->pnfs_error) { __nfs4_read_done_cb(data); + memset(&data->task, 0, sizeof(data->task)); data->mds_ops->rpc_call_done(&data->task, data); data->mds_ops->rpc_release(data); return 0;