aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/ss/services.c
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2020-02-13 12:29:50 +0000
committerDavid Sterba <dsterba@suse.com>2020-02-19 00:39:08 +0100
commite75fd33b3f744f644061a4f9662bd63f5434f806 (patch)
tree9889a8ed46184e5a6aba6367950ed6af160d7bf0 /security/selinux/ss/services.c
parentbtrfs: fix bytes_may_use underflow in prealloc error condtition (diff)
downloadlinux-dev-e75fd33b3f744f644061a4f9662bd63f5434f806.tar.xz
linux-dev-e75fd33b3f744f644061a4f9662bd63f5434f806.zip
Btrfs: fix btrfs_wait_ordered_range() so that it waits for all ordered extents
In btrfs_wait_ordered_range() once we find an ordered extent that has finished with an error we exit the loop and don't wait for any other ordered extents that might be still in progress. All the users of btrfs_wait_ordered_range() expect that there are no more ordered extents in progress after that function returns. So past fixes such like the ones from the two following commits: ff612ba7849964 ("btrfs: fix panic during relocation after ENOSPC before writeback happens") 28aeeac1dd3080 ("Btrfs: fix panic when starting bg cache writeout after IO error") don't work when there are multiple ordered extents in the range. Fix that by making btrfs_wait_ordered_range() wait for all ordered extents even after it finds one that had an error. Link: https://github.com/kdave/btrfs-progs/issues/228#issuecomment-569777554 CC: stable@vger.kernel.org # 4.4+ Reviewed-by: Qu Wenruo <wqu@suse.com> Reviewed-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'security/selinux/ss/services.c')
0 files changed, 0 insertions, 0 deletions