]> 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, 21 Sep 2012 01:02:10 +0000 (11:02 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 25 Sep 2012 08:46:38 +0000 (18:46 +1000)
commita37161afe68cd04de062bce97fd76abf781bdb97
tree9e84796884e78d585487b1918bf29ba20297b163
parenta6589b0784242875ca0023a920eb33e57249d1f7
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