From 11f5cf447ce22152027f46494ec5fc58e0f2b6d3 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 2 May 2012 09:46:04 +0000 Subject: [PATCH] ib_srpt: Add a comment git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4265 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index d803c55c4..b9172723b 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -2223,6 +2223,9 @@ static bool __srpt_close_ch(struct srpt_rdma_ch *ch) /** * srpt_close_ch() - Close an RDMA channel. + * + * Note: Must be called from inside an IB CM callback since otherwise it's not + * guaranteed that ch->cm_id won't be destroyed from another thread. */ static void srpt_close_ch(struct srpt_rdma_ch *ch) {