Re: OpenSSI preview on Debian Lenny (on x86_64)

John Hughes <[email protected]> Sat, 17 Apr 2010 16:10:49 +0200
Newsgroups gmane.linux.cluster.ssic.devel
Message-ID <[email protected]>
John Hughes wrote:
>
> static int
> as_do_pg(as_pg_info *apip, as_info *asip)
> {
>        int error = 0;
>        struct mm_struct *mm = current->mm;
>        struct vm_area_struct *vma;
>        pgd_t * pgd;
>        pud_t * pud;
>        pmd_t * pmd;
>        pte_t * pte;
>
>        down_write(&mm->mmap_sem);
>        if (!(vma = find_vma(mm, apip->api_addr))) {
>                error = -EINVAL;
>                goto out_unlock_sem;
>        }
>        if (unlikely(anon_vma_prepare(vma))) {
>                error = -EAGAIN;
>                goto out_unlock_sem;
>        }
>        flush_dcache_page(apip->api_page);
>        pgd = pgd_offset(mm, apip->api_addr);
>        pud = pud_offset(pgd, apip->api_addr);
It seems than when we get here "pgd_none (pgd)" is true, so maybe we 
should be doing a pud_alloc instead of just "pud = pud_offset(...)".

But it doesn't seem to work, that just makes us hang.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev