Dan Carpenter 21909f9e09 ext2: fix sleeping in atomic bugs on error
[ Upstream commit 372d1f3e1bfede719864d0d1fbf3146b1e638c88 ]

The ext2_error() function syncs the filesystem so it sleeps.  The caller
is holding a spinlock so it's not allowed to sleep.

   ext2_statfs() <- disables preempt
   -> ext2_count_free_blocks()
      -> ext2_get_group_desc()

Fix this by using WARN() to print an error message and a stack trace
instead of using ext2_error().

Link: https://lore.kernel.org/r/20210921203233.GA16529@kili
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-10-09 14:11:03 +02:00
..
2020-11-05 11:08:53 +01:00
2021-06-30 08:48:14 -04:00
2019-08-06 19:06:51 +02:00
2021-07-20 16:15:46 +02:00
2021-09-22 11:48:02 +02:00
2021-07-20 16:16:03 +02:00
2020-06-22 09:05:01 +02:00
2020-03-05 16:42:12 +01:00
2021-01-30 13:32:11 +01:00
2018-08-21 18:19:09 -07:00
2020-03-25 08:06:14 +01:00
2021-05-22 10:59:50 +02:00