I often file either chapter 7s or chapter 13s for individuals that own houses. Most of the time, the individual who files wants to keep their house. And most of the time it is easy for the debtor to keep their house in the bankruptcy. The key issue is the amount of equity in the house: the difference between what the current fair market value of the house minus the amount of money owed on the mortgage(s).
In Oregon, banks have traditionally chosen to non-judicially foreclose on homes after a period of default on the mortgage payments (non-judicial foreclosures can be quicker and less costly than judicial foreclosures). There is no law that requires the bank to foreclose within a certain period of time. Indeed sometimes many months or years pass before the bank gets around to beginning the foreclosure process.