diff options
author | Ariel Nahum <arieln@mellanox.com> | 2015-09-03 19:49:55 +0300 |
---|---|---|
committer | James Bottomley <JBottomley@Odin.com> | 2015-09-17 07:25:02 -0700 |
commit | 52f5664a87474894e7da44f3b778dbe4e4c740b7 (patch) | |
tree | 5584c2387542cb4f3c9e89b8f3f01bc6f590eea7 /Documentation/devicetree/bindings | |
parent | 6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f (diff) | |
download | linux-52f5664a87474894e7da44f3b778dbe4e4c740b7.tar.gz |
libiscsi: Fix iscsi_check_transport_timeouts possible infinite loop
Connection last_ping is not being updated when iscsi_send_nopout fails.
Not updating the last_ping will cause firing a timer to a past time
(last_ping + ping_tmo < current_time) which triggers an infinite loop of
iscsi_check_transport_timeouts() and hogs the cpu.
Fix this issue by checking the return value of iscsi_send_nopout.
If it fails set the next_timeout to one second later.
Signed-off-by: Ariel Nahum <arieln@mellanox.com>
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
Diffstat (limited to 'Documentation/devicetree/bindings')
0 files changed, 0 insertions, 0 deletions