Re: pages already locked on ia64

David Mosberger
2003-11-17T23:40:25Z

>>>>> On Fri, 14 Nov 2003 11:22:23 +0100, Christian Hinkelbein <hinkelbein@ti.uni-mannheim.de> said:

Christian> Hi, i have the need to lock malloc'ed user mem between
Christian> kernel calls.

Christian> On ia32 i succesfully do a lock_page() on every page
Christian> returned by get_user_pages(), lateron i do unlock_page().
Christian> On ia64 sometimes (on ia32 seemingly never) the first
Christian> page is already locked, just after malloc(). For a quick
Christian> hack i check all pages before trying to lock them, so
Christian> that i am later just unlocking the not previously locked
Christian> ones.

Umh, what page-size did you use?

In any case, a minimal test-program that reproduces the problem would
probably help you get an answer much faster.

Thanks,

--david