mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-22 15:03:53 +02:00
- dm-bufio: fix scheduling in atomic
-----BEGIN PGP SIGNATURE----- iIoEABYIADIWIQRnH8MwLyZDhyYfesYTAyx9YGnhbQUCaHU0NhQcbXBhdG9ja2FA cmVkaGF0LmNvbQAKCRATAyx9YGnhbYuhAP9E3m1AlDYfwP1ZOwv0FGXBVtiGFlNw n9HMdwmNBbiMXQD+MxhLAPfly1oot4qUHy7akqK39ANkwlWLDZgpAcI2dA0= =kh23 -----END PGP SIGNATURE----- Merge tag 'for-6.16/dm-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm Pull device mapper fix from Mikulas Patocka: - dm-bufio: fix scheduling in atomic * tag 'for-6.16/dm-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm: dm-bufio: fix sched in atomic context
This commit is contained in:
commit
155a3c003e
|
@ -2742,7 +2742,11 @@ static unsigned long __evict_a_few(unsigned long nr_buffers)
|
|||
__make_buffer_clean(b);
|
||||
__free_buffer_wake(b);
|
||||
|
||||
cond_resched();
|
||||
if (need_resched()) {
|
||||
dm_bufio_unlock(c);
|
||||
cond_resched();
|
||||
dm_bufio_lock(c);
|
||||
}
|
||||
}
|
||||
|
||||
dm_bufio_unlock(c);
|
||||
|
|
Loading…
Reference in New Issue
Block a user