[PATCH] virtio-scsi: Fix hotcpu_notifier use-after-free with virtscsi_freeze

2013-10-28 Thread Asias He
vqs are freed in virtscsi_freeze but the hotcpu_notifier is not unregistered. We will have a use-after-free usage when the notifier callback is called after virtscsi_freeze. Signed-off-by: Asias He --- drivers/scsi/virtio_scsi.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion

Re: [PATCH] vhost/scsi: Fix incorrect usage of get_user_pages_fast write parameter

2013-10-27 Thread Asias He
irtio-scsi DMA_TO_DEVICE -> WRITE payload case. > > This bug would manifest itself as random process segmentation faults on > KVM host after repeated vhost starts + stops and/or with lots of vhost > endpoints + LUNs. > > Cc: Stefan Hajnoczi > Cc: Michael S. Tsirkin

[PATCH] virtio-scsi: Fix virtqueue affinity setup

2013-07-31 Thread Asias He
gt; 8b 47 20 48 8b 80 d0 01 00 00 48 8b 40 50 48 85 c0 74 07 be RIP [] __virtscsi_set_affinity+0x6f/0x120 RSP CR2: 0020 ---[ end trace 99679331a3775f48 ]--- CC: sta...@vger.kernel.org Signed-off-by: Asias He --- drivers/scsi/virtio_scsi.c | 2 +- 1 file changed, 1 insertion(+)

Re: [PATCH 9/9] vhost/scsi: Convert to se_cmd->cmd_kref TARGET_SCF_ACK_KREF usage

2013-06-26 Thread Asias He
gt;cmd_kref put occurs. > > Cc: Christoph Hellwig > Cc: Roland Dreier > Cc: Kent Overstreet > Cc: Asias He > Cc: Michael S. Tsirkin > Cc: Or Gerlitz > Cc: Moussa Ba > Signed-off-by: Nicholas Bellinger Acked-by: Asias He > --- > drivers/vhost/scsi.c |

Re: [PATCH 8/9] vhost/scsi: Drop unnecessary wait_for_tasks=true usage with transport_generic_free_cmd

2013-06-26 Thread Asias He
se_cmd is still active from TCM's perspective > when transport_generic_free_cmd() is called. > > Cc: Christoph Hellwig > Cc: Roland Dreier > Cc: Kent Overstreet > Cc: Asias He > Cc: Michael S. Tsirkin > Cc: Or Gerlitz > Cc: Moussa Ba > Signed-off-by: Nicholas B

Re: [PATCH 4/9] virtio_scsi: Enable new EH timeout handler

2013-06-12 Thread Asias He
On Mon, Jun 10, 2013 at 09:40:53AM +0200, Hannes Reinecke wrote: > Signed-off-by: Hannes Reinecke Reviewed-by: Asias He > --- > drivers/scsi/virtio_scsi.c | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/drivers/scsi/virtio_scsi.c b/drivers/scsi/virtio_scsi

Re: [PATCH 5/9] virtio-scsi: Implement TMF timeout

2013-06-12 Thread Asias He
gned-off-by: Hannes Reinecke Reviewed-by: Asias He > --- > drivers/scsi/virtio_scsi.c | 7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/drivers/scsi/virtio_scsi.c b/drivers/scsi/virtio_scsi.c > index 1efd219..abfc684 100644 > --- a/drivers/scsi

Re: initial LIO iSER performance numbers [was: GIT PULL] target updates for v3.10-rc1)

2013-05-03 Thread Asias He
On Fri, May 03, 2013 at 09:57:20AM +0300, Or Gerlitz wrote: > On Thu, May 2, 2013 at 10:31 PM, Nicholas A. Bellinger > wrote: > > >> We used RAMDISK_MCP backend which was patched to act as NULL device, so > >> we can test the raw iSER wire performance. > > > Btw, I'll be including a similar patc

Re: [PATCH V7 0/5] virtio-scsi multiqueue

2013-04-06 Thread Asias He
On Sat, Apr 06, 2013 at 09:40:13AM +0100, James Bottomley wrote: > On Fri, 2013-04-05 at 16:55 +0800, Wanlong Gao wrote: > > On 03/28/2013 10:22 AM, Wanlong Gao wrote: > > > On 03/23/2013 07:28 PM, Wanlong Gao wrote: > > >> This series implements virtio-scsi queue steering, which gives > > >> perfo

Re: [PATCH V6 1/5] virtio-scsi: redo allocation of target data

2013-03-20 Thread Asias He
nd no need to pass in the maximum target size as a parameter because > everything should now happen dynamically. > > Cc: James Bottomley > Cc: linux-scsi@vger.kernel.org > Signed-off-by: Paolo Bonzini > Signed-off-by: Wanlong Gao Reviewed-by:

Re: [PATCH V6 5/5] virtio-scsi: reset virtqueue affinity when doing cpu hotplug

2013-03-20 Thread Asias He
On Wed, Mar 20, 2013 at 03:01:24PM +0800, Wanlong Gao wrote: > Add hot cpu notifier to reset the request virtqueue affinity > when doing cpu hotplug. > > Cc: linux-scsi@vger.kernel.org > Signed-off-by: Paolo Bonzini > Signed-off-by: Wanlong Gao > Reviewed-by: Asias He

Re: [PATCH V4 0/5] virtio-scsi multiqueue

2013-03-18 Thread Asias He
-- > 1 file changed, 291 insertions(+), 73 deletions(-) > > -- > 1.8.2.rc2 > Patch 2-5 Reviewed-by: Asias He -- Asias -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH V4 1/5] virtio-scsi: redo allocation of target data

2013-03-18 Thread Asias He
On Mon, Mar 11, 2013 at 10:43:58AM +0800, Wanlong Gao wrote: > From: Paolo Bonzini > > virtio_scsi_target_state is now empty, but we will find new uses > for it in the next few patches. However, dropping the sglist lets > us turn the array-of-pointers into a simple array, which simplifies > the

Re: [RFC 04/11] iscsi-target: Add per transport iscsi_cmd alloc/free

2013-03-08 Thread Asias He
On Fri, Mar 8, 2013 at 9:45 AM, Nicholas A. Bellinger wrote: > From: Nicholas Bellinger > > This patch converts struct iscsi_cmd memory allocation + free to use > ->iscsit_alloc_cmd() + ->iscsit_free_cmd() iscsit_transport API caller, > and export iscsit_allocate_cmd() + iscsit_free_cmd() symbols

Re: [PATCH] target/file: Add WRITE_SAME w/ UNMAP=0 emulation support

2013-02-19 Thread Asias He
e_same_len to the operational default at setup -> > fd_configure_device() time. > > Tested with 512, 1k, 2k, and 4k block_sizes. > > Cc: Martin K. Petersen > Cc: Christoph Hellwig > Cc: Asias He > Signed-off-by: Nicholas Bellinger > --- > drivers/target/target

Re: [PATCH] target/iblock: Use backend REQ_FLUSH hint for WriteCacheEnabled status

2013-01-29 Thread Asias He
On 01/30/2013 02:57 PM, Nicholas A. Bellinger wrote: > From: Nicholas Bellinger > > This patch allows IBLOCK to check block hints in request_queue->flush_flags > when reporting current backend device WriteCacheEnabled status to a remote > SCSI initiator port. > > This is done via a se_subsystem_

Re: [PATCH 6/8] V2 ipr: Implement block iopoll

2013-01-11 Thread Asias He
Hello Wen Xiong, On Sat, Jan 12, 2013 at 7:43 AM, wrote: > This patch implements blk iopoll in ipr driver for performance improvement. Can you provide the performance numbers with/without the io polling? It would be interesting to know. > Signed-off-by: Wen Xiong > --- > drivers/scsi/ipr.c |

Re: [PATCH 0/5] virtio-scsi: create a separate workqueue

2012-11-07 Thread Asias He
er.kernel.org > drivers/scsi/virtio_scsi.c | 43 +++ > 1 file changed, 23 insertions(+), 20 deletions(-) > > -- > 1.8.0 > > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to ma

Re: [PATCH RESEND 0/5] Add vhost-blk support

2012-07-17 Thread Asias He
On 07/17/2012 11:09 PM, Michael S. Tsirkin wrote: On Fri, Jul 13, 2012 at 04:55:06PM +0800, Asias He wrote: Hi folks, [I am resending to fix the broken thread in the previous one.] This patchset adds vhost-blk support. vhost-blk is a in kernel virito-blk device accelerator. Compared to