Commit d6af8748 authored by John L. Hammond's avatar John L. Hammond Committed by Greg Kroah-Hartman

staging/lustre/obdecho: remove #if 0-ed out regions

The landing of clio #if 0-ed out some regions of echo_client.c. Just
remove these regions entirely.
Signed-off-by: default avatarJohn L. Hammond <john.hammond@intel.com>
Reviewed-on: http://review.whamcloud.com/5580
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2675Reviewed-by: default avatarJames Simmons <uja.ornl@gmail.com>
Reviewed-by: default avatarAndreas Dilger <andreas.dilger@intel.com>
Reviewed-by: default avatarOleg Drokin <oleg.drokin@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5bd07d99
...@@ -93,16 +93,6 @@ struct echo_lock { ...@@ -93,16 +93,6 @@ struct echo_lock {
atomic_t el_refcount; atomic_t el_refcount;
}; };
struct echo_io {
struct cl_io_slice ei_cl;
};
#if 0
struct echo_req {
struct cl_req_slice er_cl;
};
#endif
static int echo_client_setup(const struct lu_env *env, static int echo_client_setup(const struct lu_env *env,
struct obd_device *obddev, struct obd_device *obddev,
struct lustre_cfg *lcfg); struct lustre_cfg *lcfg);
...@@ -200,7 +190,6 @@ static struct kmem_cache *echo_lock_kmem; ...@@ -200,7 +190,6 @@ static struct kmem_cache *echo_lock_kmem;
static struct kmem_cache *echo_object_kmem; static struct kmem_cache *echo_object_kmem;
static struct kmem_cache *echo_thread_kmem; static struct kmem_cache *echo_thread_kmem;
static struct kmem_cache *echo_session_kmem; static struct kmem_cache *echo_session_kmem;
//static struct kmem_cache *echo_req_kmem;
static struct lu_kmem_descr echo_caches[] = { static struct lu_kmem_descr echo_caches[] = {
{ {
...@@ -223,13 +212,6 @@ static struct lu_kmem_descr echo_caches[] = { ...@@ -223,13 +212,6 @@ static struct lu_kmem_descr echo_caches[] = {
.ckd_name = "echo_session_kmem", .ckd_name = "echo_session_kmem",
.ckd_size = sizeof (struct echo_session_info) .ckd_size = sizeof (struct echo_session_info)
}, },
#if 0
{
.ckd_cache = &echo_req_kmem,
.ckd_name = "echo_req_kmem",
.ckd_size = sizeof (struct echo_req)
},
#endif
{ {
.ckd_cache = NULL .ckd_cache = NULL
} }
...@@ -2100,37 +2082,11 @@ static int echo_client_connect(const struct lu_env *env, ...@@ -2100,37 +2082,11 @@ static int echo_client_connect(const struct lu_env *env,
static int echo_client_disconnect(struct obd_export *exp) static int echo_client_disconnect(struct obd_export *exp)
{ {
#if 0
struct obd_device *obd;
struct echo_client_obd *ec;
struct ec_lock *ecl;
#endif
int rc; int rc;
if (exp == NULL) if (exp == NULL)
GOTO(out, rc = -EINVAL); GOTO(out, rc = -EINVAL);
#if 0
obd = exp->exp_obd;
ec = &obd->u.echo_client;
/* no more contention on export's lock list */
while (!list_empty (&exp->exp_ec_data.eced_locks)) {
ecl = list_entry (exp->exp_ec_data.eced_locks.next,
struct ec_lock, ecl_exp_chain);
list_del (&ecl->ecl_exp_chain);
rc = obd_cancel(ec->ec_exp, ecl->ecl_object->eco_lsm,
ecl->ecl_mode, &ecl->ecl_lock_handle);
CDEBUG (D_INFO, "Cancel lock on object %#llx on disconnect "
"(%d)\n", ecl->ecl_object->eco_id, rc);
echo_put_object (ecl->ecl_object);
OBD_FREE (ecl, sizeof (*ecl));
}
#endif
rc = class_disconnect(exp); rc = class_disconnect(exp);
GOTO(out, rc); GOTO(out, rc);
out: out:
...@@ -2139,12 +2095,6 @@ static int echo_client_disconnect(struct obd_export *exp) ...@@ -2139,12 +2095,6 @@ static int echo_client_disconnect(struct obd_export *exp)
static struct obd_ops echo_client_obd_ops = { static struct obd_ops echo_client_obd_ops = {
.o_owner = THIS_MODULE, .o_owner = THIS_MODULE,
#if 0
.o_setup = echo_client_setup,
.o_cleanup = echo_client_cleanup,
#endif
.o_iocontrol = echo_client_iocontrol, .o_iocontrol = echo_client_iocontrol,
.o_connect = echo_client_connect, .o_connect = echo_client_connect,
.o_disconnect = echo_client_disconnect .o_disconnect = echo_client_disconnect
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment