Hi, I am Akira.<div>Nice to meet you.</div><div>I will post a question for your help.<br><div><br></div><div>I have been developing a caching module now</div><div><a href="https://github.com/akiradeveloper/dm-lc">https://github.com/akiradeveloper/dm-lc</a></div>
<div><br></div><div>and facing a big design problem related to handling REQ_FUA flag.</div><div><br></div><div>Suppose we have 4KB split_io and</div><div>the original bio is 8KB with REQ_FUA flag.</div><div><br></div><div>
The device-mapper dm_request function now</div><div>splits the original one into two 4KB sized bios with REQ_FUA and</div><div>then passes them to map function one by one.</div><div>This eventually leads to inefficient code in my case.</div>
<div><br></div><div>All I want to do is flushing the preceding split bios at last but</div><div>I know that is not always the most efficient implementation in any dm modules and</div><div>that's why device-mapper is what it is like now.</div>
<div><br></div><div>My question is</div><div>Is there any mean to know the second bio split is the last one in the split sequence?</div><div><br></div><div>I need your help.</div><div>Thanks.</div><div><br></div><div>Akira Hayakawa</div>
</div>