Messages in this thread | | | Date | Tue, 1 Sep 2015 14:46:48 +0200 | From | Phil Sutter <> | Subject | Re: [PATCH 2/3] rhashtable-test: retry insert operations in threads |
| |
On Tue, Sep 01, 2015 at 07:43:00PM +0800, Herbert Xu wrote: > On Mon, Aug 31, 2015 at 01:00:12PM +0200, Phil Sutter wrote: > > > > The variable would be used to track if the worker has failed to allocate > > memory in background. > > > > Since the failing insertion will be retried, subsequent inserts are not > > necessary unrelated. > > If an insertion fails it is never retried. The only thing that is > retried is the expansion of the table. So I have no idea what > you are talking about.
This is not an inherent behaviour of the implementation but general agreement. The insertion may fail non-permanently (returning -EBUSY), users are expected to handle this by retrying the operation.
Cheers, Phil
| |