Depends on the situation, and it helps to think of ukemi as a counter.
We usually turn towards the tori and forward roll to standing, as Ellis describes. Sometimes, and in a worse-case scenario, if uke is late to respond or the lock is on the elbow, we need to ratchet fall.
Alternatively, and time permitting, you could place your head along your shoulder and pivot away
from tori. This movement places the original uke as tori in tembin nage, which often leads back into shiho nage.