]> git.hungrycats.org Git - linux/commit
target/file: Fix 32-bit highmem breakage for SGL -> iovec mapping
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 5 Dec 2012 11:08:29 +0000 (12:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:45:58 +0000 (08:45 -0800)
commit84a4c28a7fd2b2e2f506bdcd060b8169584e0728
tree78c58bf6b04739f648bf3d431287e9078f07f003
parent39eca4f41e47835894743ab5d878f72a3981f397
target/file: Fix 32-bit highmem breakage for SGL -> iovec mapping

commit 40ff2c3b3da35dd3a00ac6722056a59b4b3f2caf upstream.

This patch changes vectored file I/O to use kmap + kunmap when mapping
incoming SGL memory -> struct iovec in order to properly support 32-bit
highmem configurations.  This is because an extra bounce buffer may be
required when processing scatterlist pages allocated with GFP_KERNEL.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/target/target_core_file.c