Re: [PATCH v2 11/14] block: Rework bio splitting

From
Vivek Goyal <hidden>
Date
2012-05-25 18:48:27
Also in
dm-devel, linux-fsdevel, lkml
On Thu, May 24, 2012 at 07:56:03PM +0300, Boaz Harrosh wrote:

[..]
In the split you have a single bio with or without bvects allocation
should you not let the caller make sure not to set __GFP_WAIT.

For me, inspecting current->bio_list is out of context and a complete
hack. The caller should take care of it, which has more context.

For example I might want to use split from OSD code where I do
not use an elevator at all, and current->bio_list could belong
to a completely different device. (Maybe)
FWIW, I too think that checking for current->bio_list in bio_split() sounds
hackish and it should be left to caller to set right gfp flags. And it should
be commented well.

Thanks
Vivek
Thread (1 message) 1 message, 1 author, last reply 2012-05-25
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help