mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-22 13:11:27 +00:00
ib_srpt: Document rationale of srpt_set_ch_state() (merge r7282 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7538 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -188,6 +188,10 @@ static void srpt_unmap_sg_to_ib_sge(struct srpt_rdma_ch *ch,
|
||||
struct srpt_send_ioctx *ioctx);
|
||||
static void srpt_destroy_ch_ib(struct srpt_rdma_ch *ch);
|
||||
|
||||
/*
|
||||
* The only allowed channel state changes are those that change the channel
|
||||
* state into a state with a higher numerical value. Hence the new > prev test.
|
||||
*/
|
||||
static bool srpt_set_ch_state(struct srpt_rdma_ch *ch, enum rdma_ch_state new)
|
||||
{
|
||||
unsigned long flags;
|
||||
|
||||
Reference in New Issue
Block a user