Re: Calling sys_mlock() from within a driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greg KH wrote:

A driver should not be making this call.  See the openib-general mailing
list archive for a detailed description on how a driver can avoid making
this call, for one such example of fixing a driver to not do this.

Are you talking about this post?

http://www.openib.org/openib-general/archive/2004/2004-06/1086841102674/index_html#1087312340342

I don't see a detailed description of a solution in the mailing list archives. I've been following the Inifiniband driver development, and all I see are the same problems, but no solutions. People say we need to use get_user_pages(), but that function doesn't support overlapping memory regions.


-- Timur Tabi Staff Software Engineer timur.tabi@ammasso.com

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux