]> git.baikalelectronics.ru Git - kernel.git/commit
scatterlist: atomic sg_mapping_iter() no longer needs disabled IRQs
authorTejun Heo <tj@kernel.org>
Fri, 5 Oct 2012 00:13:28 +0000 (17:13 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 5 Oct 2012 18:04:58 +0000 (03:04 +0900)
commitbfd3c05d7a5b96121450e8844f377bf4440ed3e0
treeb52a1e54446331aff7233ecdefdb8af479b33f5d
parent9b6d178f0769e3e3fa385386b2cd75789248295a
scatterlist: atomic sg_mapping_iter() no longer needs disabled IRQs

SG mapping iterator w/ SG_MITER_ATOMIC set required IRQ disabled because
it originally used KM_BIO_SRC_IRQ to allow use from IRQ handlers.
kmap_atomic() has long been updated to handle stacking atomic mapping
requests on per-cpu basis and only requires not sleeping while mapped.

Update sg_mapping_iter such that atomic iterators only require disabling
preemption instead of disabling IRQ.

While at it, convert wte weird @ARG@ notations to @ARG in the comment of
sg_miter_start().

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Maxim Levitsky <maximlevitsky@gmail.com>
Cc: Alex Dubov <oakad@yahoo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/scatterlist.c