]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: wake up transaction thread upon remount
authorJustin Maggard <jmaggard10@gmail.com>
Thu, 20 Feb 2014 16:48:07 +0000 (08:48 -0800)
committerJosef Bacik <jbacik@fb.com>
Mon, 10 Mar 2014 19:16:45 +0000 (15:16 -0400)
commitcd842a78657ffe19c7a346a42cdd0370110687fb
treedb734da8c42bd53320da9a5da7ba6e16a1ed0fe4
parenteec0dd5d75a59ccf15b85a49eaaf698880f12ab2
btrfs: wake up transaction thread upon remount

Now that we can adjust the commit interval with a remount, we need
to wake up the transaction thread or else he will continue to sleep
until the previous transaction interval has elapsed before waking
up.  So, if we go from a large commit interval to something smaller,
the transaction thread will not wake up until the large interval has
expired.  This also causes the cleaner thread to stay sleeping, since
it gets woken up by the transaction thread.

Fix it by simply waking up the transaction thread during a remount.

Signed-off-by: Justin Maggard <jmaggard10@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
fs/btrfs/super.c