Re: [PATCH 17/17] block/cfq: cache rightmost rb_node

2017-07-19 Thread Jan Kara
On Tue 18-07-17 18:46:03, Davidlohr Bueso wrote: > For the same reasons we already cache the leftmost pointer, > apply the same optimization for rb_last() calls. Users must > explicitly do this as rb_root_cached only deals with the > smallest node. > > Cc: ax...@fb.com > Cc:

[PATCH 17/17] block/cfq: cache rightmost rb_node

2017-07-18 Thread Davidlohr Bueso
For the same reasons we already cache the leftmost pointer, apply the same optimization for rb_last() calls. Users must explicitly do this as rb_root_cached only deals with the smallest node. Cc: ax...@fb.com Cc: linux-block@vger.kernel.org Signed-off-by: Davidlohr Bueso --- This