]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dm snapshot: fix lockup in dm_exception_table_exit
authorMikulas Patocka <mpatocka@redhat.com>
Wed, 20 Mar 2024 17:43:11 +0000 (18:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2024 13:28:37 +0000 (15:28 +0200)
commite50f83061ac250f90710757a3e51b70a200835e2
treec05d09e50f56fe9ff1a1f352bced84432daa07a9
parent066bbc4306445f16e529a13a6e8d05ec6074416e
dm snapshot: fix lockup in dm_exception_table_exit

[ Upstream commit 6e7132ed3c07bd8a6ce3db4bb307ef2852b322dc ]

There was reported lockup when we exit a snapshot with many exceptions.
Fix this by adding "cond_resched" to the loop that frees the exceptions.

Reported-by: John Pittman <jpittman@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/md/dm-snap.c