Re: [PATCH-v5 4/6] vhost/scsi: Add pre-allocation for tv_cmd SGL + upages memory

2013-09-03 Thread Asias He
On Sat, Aug 31, 2013 at 02:52:34AM +, Nicholas A. Bellinger wrote: > From: Nicholas Bellinger > > This patch adds support for pre-allocation of per tv_cmd descriptor > scatterlist + user-space page pointer memory using se_sess->sess_cmd_map > within tcm_vhost_make_nexus() code. > > This incl

[PATCH-v5 4/6] vhost/scsi: Add pre-allocation for tv_cmd SGL + upages memory

2013-08-30 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch adds support for pre-allocation of per tv_cmd descriptor scatterlist + user-space page pointer memory using se_sess->sess_cmd_map within tcm_vhost_make_nexus() code. This includes sanity checks within vhost_scsi_map_to_sgl() to reject I/O that exceeds these in