diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2009-07-03 08:44:34 -0500 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2011-12-28 16:25:29 -0600 |
commit | 11e2deeaea3f5c74d2b8beb12e72c10aad5283b3 (patch) | |
tree | 1e490f64eb5eb0a7b399952f85d8c75c48f4175c | |
parent | 264617c91bd6dd1f4510ccc841611bfe084b0501 (diff) |
mm: scatterlist dont disable irqs on RT
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r-- | lib/scatterlist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/scatterlist.c b/lib/scatterlist.c index 4ceb05d772ae..181f3647818d 100644 --- a/lib/scatterlist.c +++ b/lib/scatterlist.c @@ -423,7 +423,7 @@ void sg_miter_stop(struct sg_mapping_iter *miter) flush_kernel_dcache_page(miter->page); if (miter->__flags & SG_MITER_ATOMIC) { - WARN_ON(!irqs_disabled()); + WARN_ON_NONRT(!irqs_disabled()); kunmap_atomic(miter->addr, KM_BIO_SRC_IRQ); } else kunmap(miter->page); @@ -463,7 +463,7 @@ static size_t sg_copy_buffer(struct scatterlist *sgl, unsigned int nents, sg_miter_start(&miter, sgl, nents, sg_flags); - local_irq_save(flags); + local_irq_save_nort(flags); while (sg_miter_next(&miter) && offset < buflen) { unsigned int len; @@ -480,7 +480,7 @@ static size_t sg_copy_buffer(struct scatterlist *sgl, unsigned int nents, sg_miter_stop(&miter); - local_irq_restore(flags); + local_irq_restore_nort(flags); return offset; } |