Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

target: Don't allocate pages for NULLIO devices

Signed-off-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>

authored by

Andy Grover and committed by
Nicholas Bellinger
670caa9f db5d1c3c

+5
+5
drivers/target/target_core_rd.c
··· 139 139 rd_dev->rd_page_count); 140 140 return -EINVAL; 141 141 } 142 + 143 + /* Don't need backing pages for NULLIO */ 144 + if (rd_dev->rd_flags & RDF_NULLIO) 145 + return 0; 146 + 142 147 total_sg_needed = rd_dev->rd_page_count; 143 148 144 149 sg_tables = (total_sg_needed / max_sg_per_table) + 1;