@@ -1130,8 +1130,6 @@ pnfs_ld_write_done(struct nfs_write_data *data)
return 0;
}
- put_lseg(data->lseg);
- data->lseg = NULL;
dprintk("%s: pnfs_error=%d, retry via MDS\n", __func__,
data->pnfs_error);
status = nfs_initiate_write(data, NFS_CLIENT(data->inode),
@@ -1179,8 +1177,6 @@ pnfs_ld_read_done(struct nfs_read_data *data)
return 0;
}
- put_lseg(data->lseg);
- data->lseg = NULL;
dprintk("%s: pnfs_error=%d, retry via MDS\n", __func__,
data->pnfs_error);
status = nfs_initiate_read(data, NFS_CLIENT(data->inode),
the de-ref in pnfs_ld_read/write_done in the error case is not needed. I only tested the write path but I suspect it is all symetric Signed-off-by: Boaz Harrosh <bharrosh@panasas.com> --- fs/nfs/pnfs.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)