Dan Carpenter 372d1f3e1b ext2: fix sleeping in atomic bugs on error
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>
2021-09-22 13:05:23 +02:00
..
\n
2021-08-30 10:24:50 -07:00
2021-07-13 14:29:00 +02:00
\n
2021-08-30 10:24:50 -07:00
2021-04-12 15:04:29 +02:00
2021-09-09 11:39:57 -07:00
2021-01-24 14:27:17 +01:00
2021-01-24 14:27:17 +01:00
2021-01-24 14:27:17 +01:00