If the grating is periodic and continuous, and the ends of the laser are anti-reflection (AR/AR) coated, so there is no feedback other than the grating itself, then such a structure supports two longitudinal (degenerate) modes and almost always lases at two wavelengths. Obviously a two-moded laser is generally not desirable. So there are various ways of breaking this "degeneracy".
