[PATCH] kjournald exits with nonzero preempt_count
authorRobert Love <rml@tech9.net>
Thu, 4 Apr 2002 03:24:52 +0000 (19:24 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Thu, 4 Apr 2002 03:24:52 +0000 (19:24 -0800)
commit023f147fb12e43dcf4afa6b00de103a11adf6c04
tree54c7c6c0e9b1e1ddd8b6f89878bf8b1707160aec
parentfaaadc0c4f7540cb462a657ebbee72c5157e2c9f
[PATCH] kjournald exits with nonzero preempt_count

The preempt_count debug check that went into 2.5.8-pre1 already caught a
simple case in kjournald.  Specifically, kjournald does not drop the BKL
when it exits as it knows schedule will do so for it.

For the sake of clarity and exiting with a preempt_count of zero, the
attached patch explicitly calls unlock_kernel when kjournald is exiting.
fs/jbd/journal.c