Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending

Pull target fix from Nicholas Bellinger:
"So just a single target fix for v3.7.0 this time around from Roland to
address a aborted command bug w/ tcm_qla2xxx fabric ports.

Also, there is one outstanding IBLOCK + virtio-blk bug that is still
being tracked down effecting v3.6.x, but AFAICT thus far this appears
to be a bug outside of target code."

* git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending:
target: Fix handling of aborted commands

+4 -2
+4 -2
drivers/target/target_core_transport.c
··· 1819 1819 /* 1820 1820 * If the received CDB has aleady been aborted stop processing it here. 1821 1821 */ 1822 - if (transport_check_aborted_status(cmd, 1)) 1822 + if (transport_check_aborted_status(cmd, 1)) { 1823 + complete(&cmd->t_transport_stop_comp); 1823 1824 return; 1825 + } 1824 1826 1825 1827 /* 1826 1828 * Determine if IOCTL context caller in requesting the stopping of this ··· 3069 3067 unsigned long flags; 3070 3068 3071 3069 spin_lock_irqsave(&cmd->t_state_lock, flags); 3072 - if (cmd->se_cmd_flags & SCF_SENT_CHECK_CONDITION) { 3070 + if (cmd->se_cmd_flags & (SCF_SENT_CHECK_CONDITION | SCF_SENT_DELAYED_TAS)) { 3073 3071 spin_unlock_irqrestore(&cmd->t_state_lock, flags); 3074 3072 return; 3075 3073 }