提交 df18d127 编写于 作者: B Boaz Harrosh 提交者: Trond Myklebust

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: NBoaz Harrosh <bharrosh@panasas.com>
Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 5afa9133
...@@ -108,7 +108,6 @@ _dev_list_add(const struct nfs_server *nfss, ...@@ -108,7 +108,6 @@ _dev_list_add(const struct nfs_server *nfss,
de = n; de = n;
} }
atomic_inc(&de->id_node.ref);
return de; return de;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册