summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorStephen Brennan <stephen.s.brennan@oracle.com>2021-06-23 16:21:14 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-07-20 16:17:29 +0200
commita3620b28b3d2ef90e1cac43c447d97c1bfdf63de (patch)
tree494ab5a62761b4d1b2d9d56f5432aa26889d57aa /net
parent6145acdd2a33f64cc897832696c568c9fdf9cf3d (diff)
downloadlinux-stable-a3620b28b3d2ef90e1cac43c447d97c1bfdf63de.tar.gz
linux-stable-a3620b28b3d2ef90e1cac43c447d97c1bfdf63de.tar.bz2
linux-stable-a3620b28b3d2ef90e1cac43c447d97c1bfdf63de.zip
ext4: use ext4_grp_locked_error in mb_find_extent
commit cd84bbbac12a173a381a64c6ec8b76a5277b87b5 upstream. Commit 5d1b1b3f492f ("ext4: fix BUG when calling ext4_error with locked block group") introduces ext4_grp_locked_error to handle unlocking a group in error cases. Otherwise, there is a possibility of a sleep while atomic. However, since 43c73221b3b1 ("ext4: replace BUG_ON with WARN_ON in mb_find_extent()"), mb_find_extent() has contained a ext4_error() call while a group spinlock is held. Replace this with ext4_grp_locked_error. Fixes: 43c73221b3b1 ("ext4: replace BUG_ON with WARN_ON in mb_find_extent()") Cc: <stable@vger.kernel.org> # 4.14+ Signed-off-by: Stephen Brennan <stephen.s.brennan@oracle.com> Reviewed-by: Lukas Czerner <lczerner@redhat.com> Reviewed-by: Junxiao Bi <junxiao.bi@oracle.com> Link: https://lore.kernel.org/r/20210623232114.34457-1-stephen.s.brennan@oracle.com Signed-off-by: Theodore Ts'o <tytso@mit.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions