Is mental illness considered a disability?

Well, the definition of a disability is a physical or mental condition that limits a person's movements, senses or activities. For mental illness just like physical illness it depends on the severity.
This is just my opinion.
If it is severe enough to keep you from working, then yes it is. However, if it is something self-inflicted that you can stop causing, then it would not be considered a disability.