Re: [PATCH] scsi: libiscsi: Allow sd_shutdown on bad transport

2017-12-15 Thread Bart Van Assche
On Thu, 2017-12-07 at 19:59 -0200, Rafael David Tinoco wrote: > This happens because iscsi_eh_cmd_timed_out(), the transport layer > timeout helper, would tell the queue timeout function (scsi_times_out) > to reset the request timer over and over, until the session state is > back to logged in

Re: [PATCH] scsi: libiscsi: Allow sd_shutdown on bad transport

2017-12-15 Thread Rafael David Tinoco
Hello Bart, I am returning BLK_EH_HANDLED in iscsi_eh_cmd_timed_out(). Do you mean something different ? That paragraph means that I have tried to return BLK_EH_NOT_HANDLED first, because that would be the other option instead of BLK_EH_RESET_TIMER (which is causing this issue), but if I

[PATCH] scsi: libiscsi: Allow sd_shutdown on bad transport

2017-12-15 Thread Rafael David Tinoco
If, for any reason, userland shuts down iscsi transport interfaces before proper logouts - like when logging in to LUNs manually, without logging out on server shutdown, or when automated scripts can't umount/logout from logged LUNs - kernel will hang forever on its sd_sync_cache() logic, after

Re: [PATCH] scsi: libiscsi: Allow sd_shutdown on bad transport

2017-12-15 Thread Rafael David Tinoco
Lee, Chris, Some test results. - Single unmounted disk, with transport connection wiped before final logout: http://pastebin.ubuntu.com/26139576/ - Multiple mounted disks, multipath dev-mapper, all transport connections were wiped before the final logout, with heavy write workload:

Re: backstores/iblock missing

2017-12-15 Thread The Lee-Man
This does not seem related to open-iscsi. It sounds like you are asking about targetcli-fb. On Monday, December 11, 2017 at 11:11:23 PM UTC-8, malteseLun wrote: > > Hello > I have centos7.4 running and came across few tutorials which tell > backstores/iblock configuration.I can't see iblock on