Stability of flow in a channel with longitudinal grooves