Re: [PATCH-FOR-38] target: Fix t_transport_aborted handling in LUN_RESET + active I/O shutdown

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 25, 2011 at 1:58 AM, Nicholas A. Bellinger
<nab@xxxxxxxxxxxxxxx> wrote:
> This patch addresses two outstanding bugs related to T_TASK(cmd)->t_transport_aborted
> handling during TMR LUN_RESET and active I/O shutdown.
>
> This first involves adding two explict t_transport_aborted=1 assignments in
> core_tmr_lun_reset() in order to signal the task has been aborted, and
> updating transport_generic_wait_for_tasks() to skip sleeping when
> t_transport_aborted=1 has been set.  This fixes an issue where
> transport_generic_wait_for_tasks() would end up sleeping indefinately when
> called from fabric module context while TMR LUN_RESET was happening with
> long outstanding backend struct se_task not yet being completed.
>
> The second adds a missing call to transport_remove_task_from_execute_queue()
> when task->task_execute_queue=1 is set in order to fix an OOPs when
> task->t_execute_list has not been dropped.  It also fixes the same case in
> transport_processing_shutdown() to prevent the issue from happening during
> active I/O struct se_device shutdown.

Hello Nicholas,

Are all I/O shutdown improvements present in the lio-4.1 branch
included in this patch ? I'm asking because with the lio-4.1 branch I
can't reproduce https://bugzilla.kernel.org/show_bug.cgi?id=29442. If
so, it seems like a good idea to me to refer to that bugzilla item in
the patch description. See also
https://github.com/bvanassche/srpt-lio/tree/srpt-lio-4.1 if you want
to have a look at the code I have been testing.

Bart.
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux