Flows induced in a cylinder with both end walls rotating