If we can remove the per-device queue depth checking a lot of this could be simplified even further, leading to less lock contention and atomic: - once the queue depth check is gone this means we will always process all tasks transport_execute_tasks, aka if we always allow all tasks to go through and never touch a queue, or we need to add all of them. - from that follows that we do not have to queue up tasks at all, we can move to queueing up commands instead, and only do so if ordered commands exist - once we only queue up command all the tasks lists in the device can go away - we can always batch operations on the tasks by going to the command first. -- To unsubscribe from this list: send the line "unsubscribe target-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html