It's not in openib since I am not using it since it is not doing what I need. The code in openib calls sys_mlock to lock the pages in the process's address spcae. In my latst description I meant that the two calls to get_user_pages were made on the same buffer.I used 2.4.21-4 (RH AS 3.0).
I still have grave doubts about what you try to do... is this the code
at openib.org ? or is there some other URL where the code is visible ?