iscsi: handle check condition status in retry loop
commitdd3b00202a5ff4153a0088917ac69d2e6cd2bc1f
authorXie Yongji <xieyongji@bytedance.com>
Wed, 1 Jul 2020 10:54:43 +0000 (1 18:54 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 10 Jul 2020 22:02:23 +0000 (10 18:02 -0400)
treea7f069fefc04e1ed0e0c067a023c715e2193536a
parent1b38750c40281dd0d068f8536b2ea95d7b9bd585
iscsi: handle check condition status in retry loop

The handling of check condition was incorrect because
we would only do it after retries exceed maximum.

Fixes: 8c460269aa ("iscsi: base all handling of check condition on scsi_sense_to_errno")
Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
Message-Id: <20200701105444.3226-1-xieyongji@bytedance.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
block/iscsi.c