aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorBart Van Assche <[email protected]>2016-02-11 11:08:34 -0800
committerDoug Ledford <[email protected]>2016-02-29 17:12:36 -0500
commit8628991fbe6a9086189f55f0b33dee7f25108ecc (patch)
tree4cfe8e1c7373c8a93c1d68de0a3b815d98c86240 /net/lapb/lapb_subr.c
parentc13c90ea6762d834a07c0aa18134d98794f6fc3d (diff)
IB/srpt: Use a mutex to protect the channel list
In a later patch a function that can block will be called while iterating over the rch_list. Hence protect that list with a mutex instead of a spinlock. And since it is not allowed to sleep while the task state != TASK_RUNNING, convert the list test in srpt_ch_list_empty() into a lockless test. Signed-off-by: Bart Van Assche <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Cc: Sagi Grimberg <[email protected]> Cc: Alex Estrin <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions