All-fiber passively Q-switched fiber laser with a Sm-doped fiber saturable absorber.