Josef Bacik b5cb160084 Btrfs: fix small race with delalloc flushing waitqueue's
Everytime we start a new flushing thread, we init the waitqueue if there isn't a
flushing thread running.  The problem with this is we check
space_info->flushing, which we clear right before doing a wake_up on the
flushing waitqueue, which causes problems if we init the waitqueue in the middle
of clearing the flushing flagh and calling wake_up.  This is hard to hit, but
the code is wrong anyway, so init the flushing/allocating waitqueue when
creating the space info and let it be.  I haven't seen the panic since I've been
using this patch.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2010-04-05 14:42:00 -04:00
..
2010-03-30 21:19:09 -04:00
2010-03-30 21:19:09 -04:00
2010-03-15 10:58:13 -04:00
2008-09-25 11:04:06 -04:00
2010-03-30 21:19:09 -04:00
2010-03-16 14:24:27 -04:00
2009-02-04 09:28:28 -05:00
2009-04-02 16:46:06 -04:00
2010-03-30 21:19:09 -04:00
2009-01-05 21:25:51 -05:00