On 2020/8/18 22:11, David Disseldorp wrote:
Hi,
On Tue, 18 Aug 2020 19:16:10 +0800, Wu Bo wrote:
From: Wu Bo <wubo40@xxxxxxxxxx>
When I use fio to test the iscsi volumes and logout of the iscsi session
at the same time, the following crash occurs:
The change looks reasonable here, but I'd like get a reproducer for it.
I've attempted something via:
https://github.com/ddiss/libiscsi/tree/async_logout_during_write
(run iscsi-test-cu --test iSCSI.iSCSITMF.LogoutDuringIOAsync)
Do you have any ideas why I'm not able to hit this oops?
Thanks, David
.
Hi,
This is more difficult to reproduce it,
I found that the upstream already has a similar solution.
commit: e9d3009cb936bd0faf0719f68d98ad8afb1e613b
scsi: target: iscsi: Wait for all commands to finish before freeing a
session.
Thanks, Wu Bo