Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: bill_carson@126.com (rocky)
To: linux-arm-kernel@lists.infradead.org
Subject: Question about free_pgd_slow ?
Date: Wed, 9 Mar 2011 10:49:01 +0800 (CST)	[thread overview]
Message-ID: <13b7a6f5.3213.12e98847729.Coremail.bill_carson@126.com> (raw)
In-Reply-To: <AANLkTikyeE=YEJ03-zewU9i_aMfG=A9kOKdpe4Fywax6@mail.gmail.com>

At 2011-03-07 22:44:58?"Rabin Vincent" <rabin@rab.in> wrote: >2011/3/5 rocky <bill_carson@126.com>: >pgd_free() on the other hand is safe because it's called when we've >switched away from this mm, and the page table is no longer in use >(mm->mm_count == 0). > >Have a look at exit_mm(), which increases the mm_count before calling >mm_put(), and finish_task_switch(), which does the mmdrop().

crystal clear:)
your explanation DOES make sense

I can say when mm->mm_count ==0 , current_thread_info is not the thread info corresponding with mm used in mmdrop()

currently I am working on hugetlb for ARM
I put huge page table in thread_info when calling pgd_alloc
and wants to free it in pgd_free which is doomed to fail.
now I move those cookies into mm_struct , definitely not right place.
but I cannot find a desired place!

Thanks Rabin

rocky













-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20110309/41fbdff1/attachment.html>

      reply	other threads:[~2011-03-09  2:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-25  3:35 Question about free_pgd_slow ? rocky
2011-03-02 15:52 ` Rabin Vincent
2011-03-05 10:19   ` rocky
2011-03-07 14:44     ` Rabin Vincent
2011-03-09  2:49       ` rocky [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=13b7a6f5.3213.12e98847729.Coremail.bill_carson@126.com \
    --to=bill_carson@126.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox