]> git.openfabrics.org - ~tnikolova/compat-rdma/.git/commit
IB/srp: force reconnect_delay module param to exceed fast_io_fail_tmo
authorVladimir Sokolovsky <vlad@mellanox.com>
Wed, 5 Jul 2017 22:43:06 +0000 (01:43 +0300)
committerVladimir Sokolovsky <vlad@mellanox.com>
Wed, 5 Jul 2017 22:43:06 +0000 (01:43 +0300)
commit9e1c053ea1c946c4990b09d987b2e756ecefa59c
treea832714029a2ab102cfc6d8268462b5e0531881f
parenta0f963186bef31a5e024bb3dc85ffa2253a0251b
IB/srp: force reconnect_delay module param to exceed fast_io_fail_tmo

This commit works-around a rare warning caused by a race condition between
srp_post_send and srp_rport_reconnect.
When reconnect_delay <= fast_io_fail_tmo, race condition of calling
srp_terminate_io() while srp_queuecommand() is running is not safe.
Forcing reconnect_delay > fast_io_fail_tmo causes all I/O to fail
before trying to reconnect to target.

Signed-off-by: Israel Rukshin <israelr@mellanox.com>
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
patches/0008-BACKPORT-ib_srp.patch