linux: Clear media states on flush