]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: don't look at bio flags after submit_bio
authorChris Mason <chris.mason@oracle.com>
Mon, 15 Mar 2010 14:21:30 +0000 (10:21 -0400)
committerChris Mason <chris.mason@oracle.com>
Mon, 15 Mar 2010 15:00:15 +0000 (11:00 -0400)
commit93fb5a40b408ff9942016552f96b1dbc578ad68b
tree598f33540071cd31bd7738b5d6246bfbaa0d9b3b
parente46be19ca5eb1c294a481332c8f65b51ebb8f931
Btrfs: don't look at bio flags after submit_bio

After callling submit_bio, the bio can be freed at any time.  The
btrfs submission thread helper was checking the bio flags too late,
which might not give the correct answer.

When CONFIG_DEBUG_PAGE_ALLOC is turned on, it can lead to oopsen.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/volumes.c