Thread (1 message) 1 message, 1 author, 2012-10-24

Re: [PATCH v4 2/2] block: Convert integrity to bvec_alloc_bs()

From: Martin K. Petersen <hidden>
Date: 2012-10-24 16:54:59
Also in: dm-devel, lkml

quoted
quoted
quoted
quoted
"Kent" == Kent Overstreet [off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help