1. 25 Dec, 2012 4 commits
  2. 21 Dec, 2012 1 commit
    • Jan Kara's avatar
      jbd2: fix assertion failure in jbd2_journal_flush() · d7961c7f
      Jan Kara authored
      The following race is possible between start_this_handle() and someone
      calling jbd2_journal_flush().
      Process A                              Process B
        if (journal->j_barrier_count) # false
        if (!journal->j_running_transaction) { #true
                                               if (journal->j_running_transaction) {
                                                 # false
                                               ... wait for committing trans ...
          if (!journal->j_running_transaction) { # true
            jbd2_get_transaction(journal, new_transaction);
          goto repeat; # eventually blocks on j_barrier_count > 0
                                                 # fails
      We fix the race by rechecking j_barrier_count after reacquiring j_state_lock
      in exclusive mode.
      Reported-by: default avatar <yjwsignal@empal.com>
      Signed-off-by: default avatarJan Kara <jack@suse.cz>
      Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
      Cc: stable@vger.kernel.org
  3. 20 Dec, 2012 1 commit
  4. 17 Dec, 2012 1 commit
  5. 11 Dec, 2012 1 commit
  6. 10 Dec, 2012 27 commits
  7. 05 Dec, 2012 1 commit
  8. 02 Dec, 2012 1 commit
  9. 30 Nov, 2012 2 commits
  10. 28 Nov, 2012 1 commit
    • Theodore Ts'o's avatar
      ext4: rationalize ext4_extents.h inclusion · 4a092d73
      Theodore Ts'o authored
      Previously, ext4_extents.h was being included at the end of ext4.h,
      which was bad for a number of reasons: (a) it was not being included
      in the expected place, and (b) it caused the header to be included
      multiple times.  There were #ifdef's to prevent this from causing any
      problems, but it still was unnecessary.
      By moving the function declarations that were in ext4_extents.h to
      ext4.h, which is standard practice for where the function declarations
      for the rest of ext4.h can be found, we can remove ext4_extents.h from
      being included in ext4.h at all, and then we can only include
      ext4_extents.h where it is needed in ext4's source files.
      It should be possible to move a few more things into ext4.h, and
      further reduce the number of source files that need to #include
      ext4_extents.h, but that's a cleanup for another day.
      Reported-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
      Reported-by: default avatarWei Yongjun <weiyj.lk@gmail.com>
      Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>