Re: [PATCH] idr: remove WARN_ON_ONCE() when trying to replace negative ID

2017-09-07 Thread Tejun Heo
On Wed, Sep 06, 2017 at 04:53:06PM -0700, Eric Biggers wrote: > From: Eric Biggers > > IDR only supports non-negative IDs. There used to be a > 'WARN_ON_ONCE(id < 0)' in idr_replace(), but it was intentionally > removed by commit 2e1c9b286765 ("idr: remove WARN_ON_ONCE() on

[PATCH] idr: remove WARN_ON_ONCE() when trying to replace negative ID

2017-09-06 Thread Eric Biggers
From: Eric Biggers IDR only supports non-negative IDs. There used to be a 'WARN_ON_ONCE(id < 0)' in idr_replace(), but it was intentionally removed by commit 2e1c9b286765 ("idr: remove WARN_ON_ONCE() on negative IDs"). Then it was added back by commit 0a835c4f090a