If you use the funds released for investment purposes the funds will be tax deductible - if for non-investment use it won't be. Fairly simple.
Just remember that tax deductibility is determined by the use of the funds, not from what the debt is secured against.