1. 08 9月, 2005 3 次提交
    • J
      [PATCH] Change ll_rw_block() calls in JBD · 26707699
      Jan Kara 提交于
      We must be sure that the current data in buffer are sent to disk.  Hence we
      have to call ll_rw_block() with SWRITE.
      Signed-off-by: NJan Kara <jack@suse.cz>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      26707699
    • M
      [PATCH] kjournald: missing JFS_UNMOUNT check · cbf0d27a
      Mark Fasheh 提交于
      It seems that kjournald() may be missing a check of the JFS_UNMOUNT flag
      before calling schedule().  This showed up in testing of OCFS2 recovery
      where our recovery thread would hang in journal_kill_thread() called from
      journal_destroy() because kjournald never got a chance to read the flag to
      shut down before the schedule().
      
      Zach pointed out the missing check which led me to hack up this trivial
      patch.  It's been tested many times now and I have yet to reproduce the
      hang, which was happening very regularly before.
      
      <mild rant>
      I'm guessing that we could really use some wait_event() calls with helper
      functions in, well, most of jbd these days which would make a ton of the
      wait code there vastly cleaner.
      </mild rant>
      
      As for why this doesn't happen in ext3 (or OCFS2 during normal
      mount/unmount of the local nodes journal), I think it may that the specific
      timing of events in the ocfs2 recovery thread exposes a race there.
      Because ocfs2_replay_journal() is only interested in playing back the
      journal, initialization and shutdown happen very quicky with no other
      metadata put into that specific journal.
      Acked-by: N"Stephen C. Tweedie" <sct@redhat.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      cbf0d27a
    • A
      [PATCH] fs/jbd/: cleanups · 022a4a7b
      Adrian Bunk 提交于
      This patch contains the following cleanups:
      - make needlessly global functions static
      - journal.c: remove the unused global function __journal_internal_check
                   and move the check to journal_init
      - remove the following write-only global variable:
        - journal.c: current_journal
      - remove the following unneeded EXPORT_SYMBOL:
        - journal.c: journal_recover
      Signed-off-by: NAdrian Bunk <bunk@stusta.de>
      Acked-by: NAndreas Dilger <adilger@clusterfs.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      022a4a7b
  2. 26 6月, 2005 1 次提交
    • C
      [PATCH] Cleanup patch for process freezing · 3e1d1d28
      Christoph Lameter 提交于
      1. Establish a simple API for process freezing defined in linux/include/sched.h:
      
         frozen(process)		Check for frozen process
         freezing(process)		Check if a process is being frozen
         freeze(process)		Tell a process to freeze (go to refrigerator)
         thaw_process(process)	Restart process
         frozen_process(process)	Process is frozen now
      
      2. Remove all references to PF_FREEZE and PF_FROZEN from all
         kernel sources except sched.h
      
      3. Fix numerous locations where try_to_freeze is manually done by a driver
      
      4. Remove the argument that is no longer necessary from two function calls.
      
      5. Some whitespace cleanup
      
      6. Clear potential race in refrigerator (provides an open window of PF_FREEZE
         cleared before setting PF_FROZEN, recalc_sigpending does not check
         PF_FROZEN).
      
      This patch does not address the problem of freeze_processes() violating the rule
      that a task may only modify its own flags by setting PF_FREEZE. This is not clean
      in an SMP environment. freeze(process) is therefore not SMP safe!
      Signed-off-by: NChristoph Lameter <christoph@lameter.com>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      3e1d1d28
  3. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4