jbd2: Fix barrier fallback code to re-lock the buffer head
authorTheodore Ts'o <tytso@mit.edu>
Wed, 4 Jun 2008 02:31:11 +0000 (22:31 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 4 Jun 2008 02:31:11 +0000 (22:31 -0400)
commit034772b068be62a79470d6c1b81b01fbe27793ac
tree408b55ae9241d1dca1145e16ff781b5f0112dd35
parentcd0b6a39a1d68b61b1073662f40f747c8b728f98
jbd2: Fix barrier fallback code to re-lock the buffer head

If the device doesn't support write barriers, the write is retried
without ordered mode.  But the buffer head needs to be re-locked or
submit_bh will fail with on BUG(!buffer_locked(bh)).

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/jbd2/commit.c