Flexeril is a muscle relaxant, which just makes me go to sleep....and may or may not help a spasm actually release....with an upper back spasm, it is totally possible that a poorly conditioned set of tiny muscles may be taxed just holding your skeleton upright, and this could cause them to fill with lactic acid, and then spasm as a result.