IB/srp: Make writing the add_target sysfs attr interruptible
authorBart Van Assche <bart.vanassche@sandisk.com>
Mon, 21 Nov 2016 21:58:18 +0000 (13:58 -0800)
committerDoug Ledford <dledford@redhat.com>
Wed, 14 Dec 2016 18:31:47 +0000 (13:31 -0500)
commit4fa354c9dbfef9226a690d8ee319b046f3067a6a
treec03b9e1df1752e7da6c988e5fa99b77e1cb3c5df
parent290081b45342ef902ed756f929fa9e4feb9f7dab
IB/srp: Make writing the add_target sysfs attr interruptible

Avoid that shutdown of srp_daemon is delayed if add_target_mutex is
held by another process.

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