Josef Bacik ad3e34bba4 Btrfs: don't map extent buffer if path->skip_locking is set
Arne's scrub stuff exposed a problem with mapping the extent buffer in
reada_for_search.  He searches the commit root with multiple threads and with
skip_locking set, so we can race and overwrite node->map_token since node isn't
locked.  So fix this so that we only map the extent buffer if we don't already
have a map_token and skip_locking isn't set.  Without this patch scrub would
panic almost immediately, with the patch it doesn't panic anymore.  Thanks,

Reported-by: Arne Jansen <sensille@gmx.net>
Signed-off-by: Josef Bacik <josef@redhat.com>
2011-06-10 12:14:12 +02:00
..
2011-05-28 07:00:39 -04:00
2011-06-04 08:11:22 -04:00
2011-05-28 07:00:39 -04:00
2008-09-25 11:04:06 -04:00
2011-05-28 07:00:39 -04:00
2011-05-06 12:34:03 +02:00
2011-06-04 08:11:22 -04:00
2011-06-04 08:11:22 -04:00
2011-05-26 17:52:15 -04:00
2010-12-22 23:15:47 +08:00
2011-05-06 12:34:03 +02:00
2011-05-06 12:34:03 +02:00
2011-05-06 12:34:03 +02:00
2011-05-06 12:34:03 +02:00
2011-05-28 07:00:39 -04:00
2011-06-04 08:11:22 -04:00
2011-06-04 08:03:47 -04:00
2011-05-28 07:00:39 -04:00
2011-06-04 08:03:44 -04:00
2011-05-28 07:00:39 -04:00