summaryrefslogtreecommitdiffstats
path: root/fs/nfs/objlayout
diff options
context:
space:
mode:
authorBoaz Harrosh <bharrosh@panasas.com>2011-06-17 16:25:51 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2011-06-19 14:49:51 -0400
commitdf18d127f4fed7a0284bcfa8d2843800cdb63b72 (patch)
treea3083c18d3370fd959cbb6d1a654823a2c612068 /fs/nfs/objlayout
parent5afa9133cfe67f1bfead6049a9640c9262a7101c (diff)
downloadop-kernel-dev-df18d127f4fed7a0284bcfa8d2843800cdb63b72.zip
op-kernel-dev-df18d127f4fed7a0284bcfa8d2843800cdb63b72.tar.gz
pnfs-obj: No longer needed to take an extra ref at add_device
Andy's last device_cache patches, already take an extra reference on the newly inserted device_id. So we can remove it from obj-io. Without this patch the device_ids are leaked. Andy's patches are not in Linus tree yet. So I'm not sure if they are scheduled for this Kernel or the next. This patch should be added as part of these. CC: Andy Adamson <andros@netapp.com> Signed-off-by: Boaz Harrosh <bharrosh@panasas.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/objlayout')
-rw-r--r--fs/nfs/objlayout/objio_osd.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/nfs/objlayout/objio_osd.c b/fs/nfs/objlayout/objio_osd.c
index 9cf208d..eb4aafa 100644
--- a/fs/nfs/objlayout/objio_osd.c
+++ b/fs/nfs/objlayout/objio_osd.c
@@ -108,7 +108,6 @@ _dev_list_add(const struct nfs_server *nfss,
de = n;
}
- atomic_inc(&de->id_node.ref);
return de;
}
OpenPOWER on IntegriCloud