IB/srp: Allow SRP disconnect through sysfs
authorBart Van Assche <bvanassche@acm.org>
Fri, 16 Sep 2011 18:41:13 +0000 (20:41 +0200)
committerRoland Dreier <roland@purestorage.com>
Sat, 1 Dec 2012 01:40:33 +0000 (17:40 -0800)
commitdc1bdbd9b8a077018d82230bc378f1bcfd8adba8
treee6484d9d378a0bad8a4f7057ae29d4164b33278e
parent7e1265bfe75f0ef1a9f5cfde202df68b7e35a53f
IB/srp: Allow SRP disconnect through sysfs

Make it possible to disconnect the IB RC connection used by the SRP
protocol to communicate with a target.

Have the SRP transport layer create a sysfs "delete" attribute for
initiator drivers that support this functionality.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Acked-by: David Dillow <dillowda@ornl.gov>
Cc: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: Robert Jennings <rcj@linux.vnet.ibm.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Documentation/ABI/stable/sysfs-transport-srp
drivers/infiniband/ulp/srp/ib_srp.c
drivers/scsi/scsi_transport_srp.c
include/scsi/scsi_transport_srp.h