Re: [PATCH 05/33] block: Add bio_list_peek()

2009-06-14 Thread Jens Axboe
On Mon, Jun 15 2009, Benjamin Herrenschmidt wrote: > On Wed, 2009-06-10 at 16:38 +0200, Geert Uytterhoeven wrote: > > Introduce bio_list_peek(), to obtain a pointer to the first bio on the > > bio_list > > without actually removing it from the list. This is needed when you want to > > serialize ba

Re: [PATCH 05/33] block: Add bio_list_peek()

2009-06-14 Thread Benjamin Herrenschmidt
On Wed, 2009-06-10 at 16:38 +0200, Geert Uytterhoeven wrote: > Introduce bio_list_peek(), to obtain a pointer to the first bio on the > bio_list > without actually removing it from the list. This is needed when you want to > serialize based on the list being empty or not. Leaving that one (and th

[PATCH 05/33] block: Add bio_list_peek()

2009-06-10 Thread Geert Uytterhoeven
Introduce bio_list_peek(), to obtain a pointer to the first bio on the bio_list without actually removing it from the list. This is needed when you want to serialize based on the list being empty or not. Signed-off-by: Geert Uytterhoeven Cc: Jens Axboe --- include/linux/bio.h |5 + 1 fi