diff options
author | Josef Bacik <josef@redhat.com> | 2011-06-14 16:22:15 -0400 |
---|---|---|
committer | Josef Bacik <josef@redhat.com> | 2011-06-15 13:24:47 -0400 |
commit | ed0ca14021e5ae3147602128641aa7f742ab227c (patch) | |
tree | 22f9a66f0f99770edb483963ff308982424f2e53 /sound/oss | |
parent | 8351583e3f6e430ce8f71913909a96ad5cc6a2f6 (diff) | |
download | kernel_samsung_aries-ed0ca14021e5ae3147602128641aa7f742ab227c.zip kernel_samsung_aries-ed0ca14021e5ae3147602128641aa7f742ab227c.tar.gz kernel_samsung_aries-ed0ca14021e5ae3147602128641aa7f742ab227c.tar.bz2 |
Btrfs: set no_trans_join after trying to expand the transaction
We can lockup if we try to allow new writers join the transaction and we have
flushoncommit set or have a pending snapshot. This is because we set
no_trans_join and then loop around and try to wait for ordered extents again.
The problem is the ordered endio stuff needs to join the transaction, which it
can't do because no_trans_join is set. So instead wait until after this loop to
set no_trans_join and then make sure to wait for num_writers == 1 in case
anybody got started in between us exiting the loop and setting no_trans_join.
This could easily be reproduced by mounting -o flushoncommit and running xfstest
13. It cannot be reproduced with this patch. Thanks,
Reported-by: Jim Schutt <jaschut@sandia.gov>
Signed-off-by: Josef Bacik <josef@redhat.com>
Diffstat (limited to 'sound/oss')
0 files changed, 0 insertions, 0 deletions