1. 11 7月, 2006 11 次提交
  2. 04 7月, 2006 2 次提交
  3. 03 7月, 2006 1 次提交
  4. 02 7月, 2006 3 次提交
    • P
      [PATCH] uml: rename and improve actually_do_remove() · eb28931e
      Paolo 'Blaisorblade' Giarrusso 提交于
      Rename actually_do_remove() to remove_files_and_dir(), make it call
      closedir(), make it ignore ENOENT (I see it frequently enough).
      
      ENOENT is probably due to multiple threads calling the exitcall functions
      together*, but fixing that is non-trivial; and ignoring it is perfectly ok
      in any case.
      
      * it can surely happen: last_ditch_exit() is installed as SIGTERM handler
        at boot, and it's not removed on thread creation.  So killall vmlinux
        (which I do) surely causes that.  I've seen also a crash which seems to
        do the same.
      
      Installing the handler on only the main thread would make UML do no cleanup
      when another thread exits, and we're not sure we want that.  And mutual
      exclusion in that context is tricky - we can't use spinlock in code not on
      a kernel stack (spinlock debugging uses "current" a lot).
      Signed-off-by: NPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
      Cc: Jeff Dike <jdike@addtoit.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      eb28931e
    • P
      [PATCH] uml: fix not_dead_yet when directory is in bad state · 912ad922
      Paolo 'Blaisorblade' Giarrusso 提交于
      The bug occurred to me when a UML left an empty ~/.uml/Sarge-norm folder -
      when trying to reuse not_dead_yet() failed one of its check.  The comment
      says that's ok and means that we can take the directory, but while normally
      not_dead_yet() removes it and returns 0 (i.e.  go on, use this), on failure
      it returns 0 but forgets to remove it.  The fix is to remove it anytime
      we're going to return 0.
      
      But since "not_dead_yet" didn't make the interface so clear, causing this
      bug, and I couldn't find a convenient name for the mix of things it did, I
      split it into two parts:
      
      is_umdir_used()      -	returns a boolean, contains all checks of not_dead_yet()
      umdir_take_if_dead   -	tries to remove the dir unless it's used - returns
      			whether it removed it, that is we now own it.
      
      With this changes the control flow is IMHO a bit clearer and needs less
      comment for control flow.
      Signed-off-by: NPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
      Cc: Jeff Dike <jdike@addtoit.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      912ad922
    • P
      [PATCH] uml: make copy_*_user atomic · 47e5243a
      Paolo 'Blaisorblade' Giarrusso 提交于
      Make __copy_*_user_inatomic really atomic to avoid "Sleeping function called in
      atomic context" warnings, especially from futex code.
      
      This is made by adding another kmap_atomic slot and making copy_*_user_skas
      use kmap_atomic; also copy_*_user() becomes atomic, but that's true and is not
      a problem for i386 (and we can always add might_sleep there as done
      elsewhere).  For TT mode kmap is not used, so there's no need for this.
      
      I've had to use another slot since both KM_USER0 and KM_USER1 are used
      elsewhere and could cause conflicts.  Till now we reused the kmap_atomic slot
      list from the subarch, but that's not needed as that list must contain the
      common ones (used by generic code) + the ones used in architecture specific
      code (and Uml till now used none); so I've taken the i386 one after comparing
      it with ones from other archs, and added KM_UML_USERCOPY.
      Signed-off-by: NPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
      Cc: Jeff Dike <jdike@addtoit.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      47e5243a
  5. 01 7月, 2006 10 次提交
  6. 30 6月, 2006 1 次提交
    • I
      [PATCH] genirq: rename desc->handler to desc->chip · d1bef4ed
      Ingo Molnar 提交于
      This patch-queue improves the generic IRQ layer to be truly generic, by adding
      various abstractions and features to it, without impacting existing
      functionality.
      
      While the queue can be best described as "fix and improve everything in the
      generic IRQ layer that we could think of", and thus it consists of many
      smaller features and lots of cleanups, the one feature that stands out most is
      the new 'irq chip' abstraction.
      
      The irq-chip abstraction is about describing and coding and IRQ controller
      driver by mapping its raw hardware capabilities [and quirks, if needed] in a
      straightforward way, without having to think about "IRQ flow"
      (level/edge/etc.) type of details.
      
      This stands in contrast with the current 'irq-type' model of genirq
      architectures, which 'mixes' raw hardware capabilities with 'flow' details.
      The patchset supports both types of irq controller designs at once, and
      converts i386 and x86_64 to the new irq-chip design.
      
      As a bonus side-effect of the irq-chip approach, chained interrupt controllers
      (master/slave PIC constructs, etc.) are now supported by design as well.
      
      The end result of this patchset intends to be simpler architecture-level code
      and more consolidation between architectures.
      
      We reused many bits of code and many concepts from Russell King's ARM IRQ
      layer, the merging of which was one of the motivations for this patchset.
      
      This patch:
      
      rename desc->handler to desc->chip.
      
      Originally i did not want to do this, because it's a big patch.  But having
      both "desc->handler", "desc->handle_irq" and "action->handler" caused a
      large degree of confusion and made the code appear alot less clean than it
      truly is.
      
      I have also attempted a dual approach as well by introducing a
      desc->chip alias - but that just wasnt robust enough and broke
      frequently.
      
      So lets get over with this quickly.  The conversion was done automatically
      via scripts and converts all the code in the kernel.
      
      This renaming patch is the first one amongst the patches, so that the
      remaining patches can stay flexible and can be merged and split up
      without having some big monolithic patch act as a merge barrier.
      
      [akpm@osdl.org: build fix]
      [akpm@osdl.org: another build fix]
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      d1bef4ed
  7. 27 6月, 2006 6 次提交
  8. 26 6月, 2006 2 次提交
  9. 23 6月, 2006 2 次提交
  10. 15 6月, 2006 1 次提交
  11. 06 6月, 2006 1 次提交