diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2009-07-03 08:44:34 -0500 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2012-04-04 09:14:25 -0500 |
commit | 8e3f95e5ae4180b7e6e522b3080cbb39bffb922c (patch) | |
tree | 4385a198b8215d50af21b0f658419953325b1780 /lib | |
parent | 9f53a476da425c59196d504c159b504cc23b710c (diff) |
mm: scatterlist dont disable irqs on RT
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'lib')
-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; } |