Files
kernel_google_wahoo/fs/ext2
Dan Carpenter f117a356fb 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 13:24:30 +02:00
..
2015-06-23 18:02:00 -04:00
2015-10-19 14:40:54 +02:00
2015-10-19 14:40:54 +02:00
2020-08-21 10:53:05 +02:00
2018-05-26 08:48:58 +02:00
2013-02-22 23:31:31 -05:00
2015-02-16 17:56:03 -08:00
2015-05-10 22:18:21 -04:00