You would report the full $30K in the current tax year, but could only deduct $3K. If you had capital gains of $27K the following year, you could use the full losses to offset it. If you don't have capital gains, then you just deduct $3K/year every year. You can carry forward until you die.
Don't quote me on all that, but that's my understanding