OSDN Git Service

IB/srp: Make CM timeout dependent on subnet timeout
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 11 Oct 2017 17:27:29 +0000 (10:27 -0700)
committerDoug Ledford <dledford@redhat.com>
Wed, 18 Oct 2017 14:49:54 +0000 (10:49 -0400)
commit4c532d6ce14bb3fb4e1cb2d29fafdd7d6bded51c
treea6f802856cb7006ca06ac0590202f7bc9aa963c4
parentcee687b68dbc718b5e10f2181102dc0bc3e4f006
IB/srp: Make CM timeout dependent on subnet timeout

For small networks it is safe to reduce the subnet timeout from
its default value (18 for opensm) to 16. Make the SRP CM timeout
dependent on the subnet timeout such that decreasing the subnet
timeout also causes SRP failover and failback to occur faster.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srp/ib_srp.c