tcm_vhost: Optimize gup in vhost_scsi_map_to_sgl
authorAsias He <asias@redhat.com>
Tue, 22 Jan 2013 03:20:27 +0000 (11:20 +0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 13 Feb 2013 19:27:41 +0000 (11:27 -0800)
commit1810053e8db3fd65f039229bde9e420278994300
tree7349d6a077501dfa8cdf66d8eb7df96b82df8d46
parentf3158f362ca8b77b24c5de86cbec347ab2bb6430
tcm_vhost: Optimize gup in vhost_scsi_map_to_sgl

We can get all the pages in one time instead of calling
gup N times.

Signed-off-by: Asias He <asias@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/vhost/tcm_vhost.c