-
Notifications
You must be signed in to change notification settings - Fork 177
Linux 4.3 changes its include/linux/bio.h #110
Comments
According to a mail conversation bio_get_nr_vecs was removed and now it is not necessary. At least from this words: "We can always fill up the bio now, no need to estimate the possible size based on queue parameters." I can assume that I can use something like BIO_MAX_PAGES (256) instead of bio_get_nr_vecs(). Also bio_get_nr_vecs found only several times in the code. So it should be not hard to replace.
Such coud be easy fixed by adding "return 1" and removing return from misc_deregister... I am not sure this is right way, but 10 minutes seach didn't give me an answer what this function returned before. The same is with bio_endio which does not return any value and has only one argument... I made changes to the code to correct compilation errors and managed to compie kernel modules for 4.3, but this simply not enough. Code needs to be checked thoughtfully. I get errors during cache creation:
And this
|
Same here, unable to compile under 4.3.3 |
Whom do we have to bribe to patch this? A truckload of beer isn't going to drink itself. |
https://github.com/Frontier314/EnhanceIO is quite a bit fresher, no? |
Gentlemen @bhansaliakhil @deepenmehta85 Do you know anything about the future of this issue? Is there anyone working on it, any plans? |
Is there anything we can do to help motivate this process? I can get some Alex Gorbachev On Fri, Feb 19, 2016 at 6:58 AM, elmystico [email protected] wrote:
|
Just stumbled on this trying to build against kernel 4.4.6. I had a quick look at the repositories suggested by @qm3ster: one appears to be just targeted at fixing build issues under Red Hat, the other, not so sure. Not looking forward to trying to patch this myself, but I will if I must. |
Actually, scratch that: there's a patched version here: |
@sjlongland have you used it? Everything's ok? |
On 02/05/16 19:04, elmystico wrote:
Not yet, but I will do so in the coming weeks. It compiles at least, https://hackaday.io/project/10529-solar-powered-cloud-computing ← I'm with EnhanceIO and dm-cache.Stuart Longland (aka Redhatter, VK4MSL) I haven't lost my mind... |
to @sjlongland and others information |
@sjlongland |
@elmystico I had to hard boot the server, and enhanceio could not load the cache on boot up. How do I either fix or completely remove enhanceio? |
I was trying to compile enhanceio on 4.3 without success.
There's problem caused by this commit on kernel (have a look at bio.h changes "block: add a bi_error field to struct bio")
also by this commit (bio.h also, "remove bio_get_nr_vecs()").
I couldn't fix it myself easly- few enhaceio source files are affected, it would be good someone experienced had a look.
Also, I'm not sure how this could be fixed without breaking older kernels support... fork?
The text was updated successfully, but these errors were encountered: