From: Ariel Nahum Date: Thu, 3 Sep 2015 16:49:55 +0000 (+0300) Subject: libiscsi: Fix iscsi_check_transport_timeouts possible infinite loop X-Git-Tag: omap-for-v4.3/fixes-rc5~9^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52f5664a87474894e7da44f3b778dbe4e4c740b7;p=pandora-kernel.git 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 Signed-off-by: Sagi Grimberg Reviewed-by: Mike Christie Signed-off-by: James Bottomley --- Reading git-diff-tree failed