diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2016-02-11 22:05:38 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-03-01 01:12:35 +0300 |
commit | f130c2205dba8f02372c794c6c4e6cc4906376f4 (patch) | |
tree | ca3b7390ed3896ba3586aeb58b834057b5b7ae4b /net/unix/af_unix.c | |
parent | e1dd413ccff7a35c4d8b14781668ed27bae64823 (diff) | |
download | linux-f130c2205dba8f02372c794c6c4e6cc4906376f4.tar.xz |
IB/srpt: Simplify channel state management
The only allowed channel state changes are those that change
the channel state into a state with a higher numerical value.
This allows to merge the functions srpt_set_ch_state() and
srpt_test_and_set_ch_state() into a single function.
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Cc: Alex Estrin <alex.estrin@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions