Re: On Removing BUG_ON macros

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ian Kent
Date: Sunday, November 7, 2010 - 7:36 pm

On Sun, 2010-11-07 at 16:16 +0900, Yoshinori Sano wrote:

No, it isn't meaningless it's essential that it be fixed, although it is
quite difficult.

The main problem is that while this remains it makes it almost
impossible (at least much more difficult) for those implementing
improvements to avoid perpetuating the problem. 


Yes, this is quite common but the fact is that there are many other
situations where errors are handled in the same way.


If you work through the function call tree quite a good number of the
dead end BUG_ON()s can be handled (at least it looks like that to me).
But there are also quite a good number of cases where the recovery
needed isn't yet clear to me. I hope that as I study the code some of
these cases will become apparent to me, failing that I plan to post some
patches with specific questions to see what others have to say.

Ian


--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
On Removing BUG_ON macros, Yoshinori Sano, (Sun Nov 7, 12:16 am)
Re: On Removing BUG_ON macros, Josef Bacik, (Sun Nov 7, 7:51 am)
Re: On Removing BUG_ON macros, Ian Kent, (Sun Nov 7, 7:36 pm)
Re: On Removing BUG_ON macros, Ian Kent, (Sun Nov 7, 7:54 pm)
Re: On Removing BUG_ON macros, Josef Bacik, (Mon Nov 8, 5:42 am)
Re: On Removing BUG_ON macros, Yoshinori Sano, (Mon Nov 8, 6:17 am)
Re: On Removing BUG_ON macros, Josef Bacik, (Mon Nov 8, 6:28 am)
Re: On Removing BUG_ON macros, Ian Kent, (Mon Nov 8, 7:06 am)
Re: On Removing BUG_ON macros, Josef Bacik, (Mon Nov 8, 7:15 am)
Re: On Removing BUG_ON macros, Ian Kent, (Mon Nov 8, 8:02 am)
Re: On Removing BUG_ON macros, Yoshinori Sano, (Mon Nov 8, 4:02 pm)
Re: On Removing BUG_ON macros, Yoshinori Sano, (Mon Nov 8, 11:13 pm)
Re: On Removing BUG_ON macros, Ian Kent, (Wed Nov 10, 9:32 pm)
Re: On Removing BUG_ON macros, Josef Bacik, (Wed Dec 1, 11:31 am)