diff options
author | Milan Broz <mbroz@redhat.com> | 2008-07-02 10:34:28 +0200 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2008-07-02 10:34:28 +0200 |
commit | c7f1b2044191a82e7f0a1a674751ed582289e2e0 (patch) | |
tree | c200c19aca2faf22ad5c8636a3a783f8e26ef289 /arch | |
parent | Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dto... (diff) | |
download | linux-c7f1b2044191a82e7f0a1a674751ed582289e2e0.tar.xz linux-c7f1b2044191a82e7f0a1a674751ed582289e2e0.zip |
dm crypt: use cond_resched
Add cond_resched() to prevent monopolising CPU when processing large bios.
dm-crypt processes encryption of bios in sector units. If the bio request
is big it can spend a long time in the encryption call.
Signed-off-by: Milan Broz <mbroz@redhat.com>
Tested-by: Yan Li <elliot.li.tech@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions