Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-12542 handle: discard OBD_FREE_RCU
[fs/lustre-release.git]
/
lustre
/
mdt
/
mdt_open.c
diff --git
a/lustre/mdt/mdt_open.c
b/lustre/mdt/mdt_open.c
index
c13fe07
..
c364925
100644
(file)
--- a/
lustre/mdt/mdt_open.c
+++ b/
lustre/mdt/mdt_open.c
@@
-45,7
+45,6
@@
#include <lustre_nodemap.h>
static const struct portals_handle_ops mfd_open_handle_ops = {
#include <lustre_nodemap.h>
static const struct portals_handle_ops mfd_open_handle_ops = {
- .hop_free = NULL,
.hop_type = "mdt",
};
.hop_type = "mdt",
};
@@
-104,7
+103,8
@@
void mdt_mfd_free(struct mdt_file_data *mfd)
{
LASSERT(refcount_read(&mfd->mfd_open_handle.h_ref) == 1);
LASSERT(list_empty(&mfd->mfd_list));
{
LASSERT(refcount_read(&mfd->mfd_open_handle.h_ref) == 1);
LASSERT(list_empty(&mfd->mfd_list));
- OBD_FREE_RCU(mfd, sizeof *mfd, &mfd->mfd_open_handle);
+ OBD_FREE_PRE(mfd, sizeof(*mfd), "rcu");
+ kfree_rcu(mfd, mfd_open_handle.h_rcu);
}
static int mdt_create_data(struct mdt_thread_info *info,
}
static int mdt_create_data(struct mdt_thread_info *info,