Re: [RFC PATCH] bio integrity: do not assume bio_integrity_pool exists if bioset exists

2015-07-14 Thread Mikulas Patocka
On Wed, 1 Jul 2015, Mike Snitzer wrote: > bio_integrity_alloc() and bio_integrity_free() assume that if a bio was > allocated from a bioset that that bioset also had its bio_integrity_pool > allocated using bioset_integrity_create(). This is a very bad > assumption given that bioset_create() an

Re: [RFC PATCH] bio integrity: do not assume bio_integrity_pool exists if bioset exists

2015-07-07 Thread Martin K. Petersen
> "Mike" == Mike Snitzer writes: Sorry I'm a bit late to the game here. Just got back from vacation. But I agree with the patch. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord

Re: [RFC PATCH] bio integrity: do not assume bio_integrity_pool exists if bioset exists

2015-07-07 Thread Mike Snitzer
On Tue, Jul 07 2015 at 9:47am -0400, Jens Axboe wrote: > On 07/01/2015 10:57 AM, Mike Snitzer wrote: > >bio_integrity_alloc() and bio_integrity_free() assume that if a bio was > >allocated from a bioset that that bioset also had its bio_integrity_pool > >allocated using bioset_integrity_create()

Re: [RFC PATCH] bio integrity: do not assume bio_integrity_pool exists if bioset exists

2015-07-07 Thread Jens Axboe
On 07/01/2015 10:57 AM, Mike Snitzer wrote: bio_integrity_alloc() and bio_integrity_free() assume that if a bio was allocated from a bioset that that bioset also had its bio_integrity_pool allocated using bioset_integrity_create(). This is a very bad assumption given that bioset_create() and bio

Re: [RFC PATCH] bio integrity: do not assume bio_integrity_pool exists if bioset exists

2015-07-06 Thread Mike Snitzer
On Wed, Jul 01 2015 at 12:57pm -0400, Mike Snitzer wrote: > bio_integrity_alloc() and bio_integrity_free() assume that if a bio was > allocated from a bioset that that bioset also had its bio_integrity_pool > allocated using bioset_integrity_create(). This is a very bad > assumption given that b

[RFC PATCH] bio integrity: do not assume bio_integrity_pool exists if bioset exists

2015-07-01 Thread Mike Snitzer
bio_integrity_alloc() and bio_integrity_free() assume that if a bio was allocated from a bioset that that bioset also had its bio_integrity_pool allocated using bioset_integrity_create(). This is a very bad assumption given that bioset_create() and bioset_integrity_create() are completely disjoint