OSDN Git Service

IB/srpt: Wait until channel release has finished during module unload
authorBart Van Assche <bart.vanassche@wdc.com>
Fri, 3 Nov 2017 23:20:55 +0000 (16:20 -0700)
committerDoug Ledford <dledford@redhat.com>
Mon, 13 Nov 2017 20:25:16 +0000 (15:25 -0500)
commit8b6dc529ea62bc021e0cdd5b0d4342ba470b5c92
treec016887acce931d9d9fb72430e8bef15dc73f0d1
parent01b3ee13c28456a61e61e5729b8addfaf16d5909
IB/srpt: Wait until channel release has finished during module unload

Introduce the helper function srpt_set_enabled(). Protect
sport->enabled changes with sdev->mutex. Makes configfs writes
into 'enabled' wait until all channel resources have been freed.
Wait until channel release has finished during kernel module
unload.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srpt/ib_srpt.c