Re: [PATCH v2] lib: Make radix_tree_node_alloc() work correctly within interrupt

2013-07-25 Thread Jan Kara
On Tue 23-07-13 15:11:57, Randy Dunlap wrote: > On 07/23/13 15:04, Jan Kara wrote: > s/sence/sense/ please. Thanks. I keep getting this wrong... I've updated the patch locally but I won't resend it just for this spellcheck fix (yet).

Re: [PATCH v2] lib: Make radix_tree_node_alloc() work correctly within interrupt

2013-07-23 Thread Randy Dunlap
On 07/23/13 15:04, Jan Kara wrote: Hi, s/sence/sense/ please. > > diff --git a/lib/radix-tree.c b/lib/radix-tree.c > index e796429..7811ed3 100644 > --- a/lib/radix-tree.c > +++ b/lib/radix-tree.c > @@ -32,6 +32,7 @@ > #include > #include > #include > +#include/* in_interrupt

[PATCH v2] lib: Make radix_tree_node_alloc() work correctly within interrupt

2013-07-23 Thread Jan Kara
With users of radix_tree_preload() run from interrupt (block/blk-ioc.c is one such possible user), the following race can happen: radix_tree_preload() ... radix_tree_insert() radix_tree_node_alloc() if (rtp->nr) { ret = rtp->nodes[rtp->nr - 1]; ... radix_tree_preload() ... radix_tree_