]> 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>
Fri, 28 Sep 2012 00:20:27 +0000 (10:20 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 3 Oct 2012 06:50:47 +0000 (16:50 +1000)
commite3d01911df9af80d704a8f51bb9cd4f1f22b4451
tree1cd0e6e905a51296596c1e085a05aff9c0960a98
parent88cf405c458675365c6742c8ffcda67d5405787f
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