IB/srp: Add ch_count sysfs attribute
IB/srp: Allow newline separator for connection string

In case last argument of the connection string is
processed as a string (destination gid for example).

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
IB/srp: Pass 'target' argument to srp_free_ch_ib()
IB/srp: Fix a race condition triggered by destroying a queue pair

At least LID reassignment can trigger a race condition in the SRP
initiator driver, namely the receive completion handler trying to
post a request on a QP during or after QP destruction and before
the CQ's have been destroyed. Avoid this race by modifying a QP
into the error state and by waiting until all receive completions
have been processed before destroying a QP.

Reported-by: Max Gurtuvoy <maxg@mellanox.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
IB/srp: Increase default value of ch_count
IB/srp: Use MODULE_VERSION()
v2.0.28