Skip to content

Commit

Permalink
lustre/fld: remove fld_thread_key
Browse files Browse the repository at this point in the history
It is left over when porting Lustre tree patch in commit (e62e5d9) and should be
removed.

Signed-off-by: Peng Tao <bergwolf@gmail.com>
  • Loading branch information
bergwolf committed Oct 8, 2013
1 parent d0e639c commit ab4f185
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/staging/lustre/lustre/fld/fld_request.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@
#include <lustre_mdc.h>
#include "fld_internal.h"

struct lu_context_key fld_thread_key;

/* TODO: these 3 functions are copies of flow-control code from mdc_lib.c
* It should be common thing. The same about mdc RPC lock */
static int fld_req_avail(struct client_obd *cli, struct mdc_cache_waiter *mcw)
Expand Down Expand Up @@ -509,14 +507,11 @@ static int __init fld_mod_init(void)
if (IS_ERR(fld_type_proc_dir))
return PTR_ERR(fld_type_proc_dir);

LU_CONTEXT_KEY_INIT(&fld_thread_key);
lu_context_key_register(&fld_thread_key);
return 0;
}

static void __exit fld_mod_exit(void)
{
lu_context_key_degister(&fld_thread_key);
if (fld_type_proc_dir != NULL && !IS_ERR(fld_type_proc_dir)) {
lprocfs_remove(&fld_type_proc_dir);
fld_type_proc_dir = NULL;
Expand Down

2 comments on commit ab4f185

@adilger
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@bergwolf
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for reviewing.

Please sign in to comment.