]> git.baikalelectronics.ru Git - kernel.git/commit
drbd: don't cond_resched_lock with IRQs disabled
authorLars Ellenberg <lars.ellenberg@linbit.com>
Mon, 6 Jun 2011 09:31:42 +0000 (11:31 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 30 Jun 2011 07:23:42 +0000 (09:23 +0200)
commit3b88334ed579f5547c7c564ad2c9c26384324c1b
treea725b7844412c1cf9079e46ce779d33338ae1d67
parent873a18765e1b69c107557b765d52c2a93a2a294d
drbd: don't cond_resched_lock with IRQs disabled

The last commit, drbd: add missing spinlock to bitmap receive,
introduced a cond_resched_lock(), where the lock in question is taken
with irqs disabled.

As we must not schedule with IRQs disabled,
and cond_resched_lock_irq() does not exist, yet,
we re-aquire the spin_lock_irq() for each bitmap page processed in turn.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_bitmap.c