Controlling wakes of flows past bluff bodies is a fundamental problem in a wide range of engineering applications. In the present work, we investigate such problems theoretically and numerically using linear stability analysis. We initially consider a flow past a cylinder in a fully developed vortex shedding regime, and we apply sufficiently high spanwise forcing on the surface of the cylinder to stabilise the near-wake. The effects on the aerodynamic forces, the wake topology and the dynamics of the vorticity are investigated using spanwise sinusoidal and Gaussian forcing. Stability analysis of the linearised Navier-Stokes equations is then performed on the fully three-dimensional flow to investigate the role of the spanwise modulation on ...