Re: [PATCH 10/12] Limit bio_endio recursion

2016-04-07 Thread Ming Lei
On Thu, Apr 7, 2016 at 1:44 PM, Ming Lei wrote: > On Thu, 7 Apr 2016 11:54:49 +0800 > Ming Lei wrote: > > @@ -1737,6 +1739,46 @@ static inline bool bio_remaining_done(struct bio *bio) > return false; > } > > +/* disable local irq when

Re: [PATCH 10/12] Limit bio_endio recursion

2016-04-06 Thread Ming Lei
On Thu, 7 Apr 2016 11:54:49 +0800 Ming Lei wrote: > On Mon, Apr 4, 2016 at 1:06 PM, Shaun Tancheff wrote: > > Recursive endio calls can exceed 16k stack. Tested with > > 32k stack and observed: > > > > DepthSize Location(293

Re: [PATCH 10/12] Limit bio_endio recursion

2016-04-06 Thread Ming Lei
On Mon, Apr 4, 2016 at 1:06 PM, Shaun Tancheff wrote: > Recursive endio calls can exceed 16k stack. Tested with > 32k stack and observed: > > DepthSize Location(293 entries) > - > 0)21520 16

[PATCH 10/12] Limit bio_endio recursion

2016-04-03 Thread Shaun Tancheff
Recursive endio calls can exceed 16k stack. Tested with 32k stack and observed: DepthSize Location(293 entries) - 0)21520 16 __module_text_address+0x12/0x60 1)21504 8 __module_address+0x5/0x140 2)