]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: only retry transaction reservation once
authorJosef Bacik <josef@redhat.com>
Tue, 5 Apr 2011 15:57:27 +0000 (11:57 -0400)
committerJosef Bacik <josef@redhat.com>
Fri, 8 Apr 2011 17:00:32 +0000 (13:00 -0400)
commitc1546020ee8ed830eb26c62089ab67ed255abafd
treeff26c40dec6e649dca7316ce10412cc6c0ace985
parentac5dde2355a9d2e0a980a4276bd6c51ec52ce443
Btrfs: only retry transaction reservation once

I saw a lockup where we kept getting into this start transaction->commit
transaction loop because of enospce.  The fact is if we fail to make our
reservation, we've tried _everything_ several times, so we only need to try and
commit the transaction once, and if that doesn't work then we really are out of
space and need to just exit.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/transaction.c