diff options
author | Sage Weil <sage@newdream.net> | 2009-11-18 11:27:06 -0800 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2009-11-18 11:29:45 -0800 |
commit | 71ececdacae24be333c534869cb1b06357f0e215 (patch) | |
tree | b07d622fb4205ce980ec5b0b6e41455b08d78b42 /fs/ceph | |
parent | 42ce56e50d948fc7c1c8c3a749ee5a21a7e134f6 (diff) | |
download | kernel_samsung_smdk4412-71ececdacae24be333c534869cb1b06357f0e215.zip kernel_samsung_smdk4412-71ececdacae24be333c534869cb1b06357f0e215.tar.gz kernel_samsung_smdk4412-71ececdacae24be333c534869cb1b06357f0e215.tar.bz2 |
ceph: remove unnecessary ceph_con_shutdown
We require that ceph_con_close be called before we drop the connection,
so this is unneeded. Just BUG if con->sock != NULL.
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph')
-rw-r--r-- | fs/ceph/messenger.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/fs/ceph/messenger.c b/fs/ceph/messenger.c index e389656..d8a6a56 100644 --- a/fs/ceph/messenger.c +++ b/fs/ceph/messenger.c @@ -340,17 +340,6 @@ void ceph_con_close(struct ceph_connection *con) } /* - * clean up connection state - */ -void ceph_con_shutdown(struct ceph_connection *con) -{ - dout("con_shutdown %p\n", con); - reset_connection(con); - set_bit(DEAD, &con->state); - con_close_socket(con); /* silently ignore errors */ -} - -/* * Reopen a closed connection, with a new peer address. */ void ceph_con_open(struct ceph_connection *con, struct ceph_entity_addr *addr) @@ -380,7 +369,7 @@ void ceph_con_put(struct ceph_connection *con) atomic_read(&con->nref), atomic_read(&con->nref) - 1); BUG_ON(atomic_read(&con->nref) == 0); if (atomic_dec_and_test(&con->nref)) { - ceph_con_shutdown(con); + BUG_ON(con->sock); kfree(con); } } |