Re: [PATCH v10 7/8] block: Consolidate bio_alloc_bioset(), bio_kmalloc()

2012-09-06 Thread Tejun Heo
On Thu, Sep 06, 2012 at 03:35:01PM -0700, Kent Overstreet wrote: > Previously, bio_kmalloc() and bio_alloc_bioset() behaved slightly > different because there was some almost-duplicated code - this fixes > some of that. > > The important change is that previously bio_kmalloc() always set >

[PATCH v10 7/8] block: Consolidate bio_alloc_bioset(), bio_kmalloc()

2012-09-06 Thread Kent Overstreet
Previously, bio_kmalloc() and bio_alloc_bioset() behaved slightly different because there was some almost-duplicated code - this fixes some of that. The important change is that previously bio_kmalloc() always set bi_io_vec = bi_inline_vecs, even if nr_iovecs == 0 - unlike bio_alloc_bioset().

[PATCH v10 7/8] block: Consolidate bio_alloc_bioset(), bio_kmalloc()

2012-09-06 Thread Kent Overstreet
Previously, bio_kmalloc() and bio_alloc_bioset() behaved slightly different because there was some almost-duplicated code - this fixes some of that. The important change is that previously bio_kmalloc() always set bi_io_vec = bi_inline_vecs, even if nr_iovecs == 0 - unlike bio_alloc_bioset().

Re: [PATCH v10 7/8] block: Consolidate bio_alloc_bioset(), bio_kmalloc()

2012-09-06 Thread Tejun Heo
On Thu, Sep 06, 2012 at 03:35:01PM -0700, Kent Overstreet wrote: Previously, bio_kmalloc() and bio_alloc_bioset() behaved slightly different because there was some almost-duplicated code - this fixes some of that. The important change is that previously bio_kmalloc() always set bi_io_vec =