Giter VIP home page Giter VIP logo

Comments (6)

michaelweiser avatar michaelweiser commented on July 1, 2024

Please consider #14. I think it fixes the issue more thoroughly.

from cryptodev-linux.

moonman avatar moonman commented on July 1, 2024

@michaelweiser your suggested patch is equivalent except it brakes cryptodev on kernels that have no put_page (as suggested in the description on < 3.10 kernels )

from cryptodev-linux.

michaelweiser avatar michaelweiser commented on July 1, 2024

You misunderstood: I just stopped looking for when page_cache_release() was introduced and if it's always been an alias for put_page() because I thought 3.10 ancient enough. I've done some more checking: page_cache_release() has been an alias for put_page() since 2.6.0. Before that (at least as far back as 2.4.10) both page_cache_release() and put_page() have been an aliases for __free_page(), so will result in exactly the same code. Do we still support 2.2?

More importantly, I was actually referring to the use of get_user_pages_remote() because quite a lot of effort went into making parameters task and mm available at that point in the code. I guess there was a reason for that, namely accessing the memory of a task different from the current one after that task's decoupled/deferred asynchronous operation finished. If that's not the case, the whole handing-around of task and mm should be dropped as well, resulting in leaner function interfaces and data structures.

from cryptodev-linux.

moonman avatar moonman commented on July 1, 2024

Makes sense. The lowest kernel we support is 3.8 so that was my main concern. I will close this PR so you can make one. Thank you.

from cryptodev-linux.

moonman avatar moonman commented on July 1, 2024

Apologies, I thought this was the PR. Issue reopened, PR closed.

from cryptodev-linux.

moonman avatar moonman commented on July 1, 2024

Fixed in f14b470

from cryptodev-linux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.