diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 7a6665431..9942bccda 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -2406,14 +2406,6 @@ static bool srpt_is_target_enabled(struct scst_tgt *scst_tgt) return srpt_tgt && srpt_tgt->enabled; } - -static int srpt_close_session(struct scst_session *sess) -{ - struct srpt_rdma_ch *ch = scst_sess_get_tgt_priv(sess); - - srpt_close_ch(ch); - return 0; -} #endif /** @@ -3525,6 +3517,14 @@ static int srpt_detect(struct scst_tgt_template *tp) return device_count; } +static int srpt_close_session(struct scst_session *sess) +{ + struct srpt_rdma_ch *ch = scst_sess_get_tgt_priv(sess); + + srpt_close_ch(ch); + return 0; +} + static int srpt_ch_list_empty(struct srpt_tgt *srpt_tgt) { int res;