Commit 155a3c00 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

Merge tag 'for-6.16/dm-fixes-2' of...

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
parents 347e9f50 b1bf1a78
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -2742,7 +2742,11 @@ static unsigned long __evict_a_few(unsigned long nr_buffers)
		__make_buffer_clean(b);
		__free_buffer_wake(b);

		if (need_resched()) {
			dm_bufio_unlock(c);
			cond_resched();
			dm_bufio_lock(c);
		}
	}

	dm_bufio_unlock(c);