]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitffbc32049733b1db18bfef1908a151b35ce1e69f
treec016887acce931d9d9fb72430e8bef15dc73f0d1
parentcc196cac5b52e9102ce84f645a87798afa92df9c
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