[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [dm-devel] [PATCH v4 2/2] block: Convert integrity to bvec_alloc_bs()
- From: "Martin K. Petersen" <martin petersen oracle com>
- To: Kent Overstreet <koverstreet google com>
- Cc: axboe kernel dk, martin petersen oracle com, dm-devel redhat com, linux-kernel vger kernel org, linux-bcache vger kernel org, tj kernel org, vgoyal redhat com
- Subject: Re: [dm-devel] [PATCH v4 2/2] block: Convert integrity to bvec_alloc_bs()
- Date: Wed, 24 Oct 2012 12:54:49 -0400
>>>>> "Kent" == Kent Overstreet <koverstreet google com> writes:
Kent> Also, bio_integrity_alloc() was using fs_bio_set if no bio_set was
Kent> specified. This was wrong
You did that, I didn't.
Kent> - using the bio_set doesn't protect us from memory allocation
Kent> failures, because we just used kmalloc for the
Kent> bio_integrity_payload.
I don't understand this comment. kmalloc where?
The bip includes an embedded bvec array and comes from either one of the
dedicated slabs or - in the case of the max bvec size - from a
mempool. These slabs and the mempool are per bio_set.
--
Martin K. Petersen Oracle Linux Engineering
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]