How about if they're in different queues?
I have Command List 'A' and Command List 'B'. I put 100 commands in 'A' and a Resource Barrier from pixel shader resource to render target. 'B' is a command list for a Compute Queue, and only has a Resource Barrier from render target to shader resource before the Compute Dispatch.
How do I now assure that 'A' transitions the resource before 'B'?