projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db5d1c3
)
target: Don't allocate pages for NULLIO devices
author
Andy Grover
<agrover@redhat.com>
Tue, 28 May 2013 23:55:21 +0000
(16:55 -0700)
committer
Nicholas Bellinger
<nab@linux-iscsi.org>
Fri, 14 Jun 2013 07:27:36 +0000
(
00:27
-0700)
Signed-off-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_rd.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/target/target_core_rd.c
b/drivers/target/target_core_rd.c
index 0921a64b555028997691fb28ad7ab84294b10a0d..51127d15d5c5accd6e39a8c408ef35a0f521db2f 100644
(file)
--- a/
drivers/target/target_core_rd.c
+++ b/
drivers/target/target_core_rd.c
@@
-139,6
+139,11
@@
static int rd_build_device_space(struct rd_dev *rd_dev)
rd_dev->rd_page_count);
return -EINVAL;
}
+
+ /* Don't need backing pages for NULLIO */
+ if (rd_dev->rd_flags & RDF_NULLIO)
+ return 0;
+
total_sg_needed = rd_dev->rd_page_count;
sg_tables = (total_sg_needed / max_sg_per_table) + 1;