]> git.karo-electronics.de Git - karo-tx-linux.git/commit
scatterlist: atomic sg_mapping_iter() no longer needs disabled IRQs
authorTejun Heo <tj@kernel.org>
Wed, 26 Sep 2012 01:34:29 +0000 (11:34 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 27 Sep 2012 07:28:01 +0000 (17:28 +1000)
commitc08c7a55606e1832cfd4f744afa0fac8566b11db
tree2f90961c27917caa6a6c12310876ccdb6a830339
parent93068f425908a5ae6f87989a493bf68359a0fcc5
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>
lib/scatterlist.c