Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751976AbaFDRYK (ORCPT ); Wed, 4 Jun 2014 13:24:10 -0400 Received: from mail-ie0-f178.google.com ([209.85.223.178]:54006 "EHLO mail-ie0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751214AbaFDRYI (ORCPT ); Wed, 4 Jun 2014 13:24:08 -0400 MIME-Version: 1.0 In-Reply-To: <1401876703-10236-3-git-send-email-pbonzini@redhat.com> References: <1401876703-10236-1-git-send-email-pbonzini@redhat.com> <1401876703-10236-3-git-send-email-pbonzini@redhat.com> Date: Wed, 4 Jun 2014 10:24:07 -0700 Message-ID: Subject: Re: [PATCH v2 2/6] virtio-scsi: replace target spinlock with seqcount From: Venkatesh Srinivas To: Paolo Bonzini Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, hch@lst.de, JBottomley@parallels.com, Ming Lei , Venkatesh Srinivas Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/4/14, Paolo Bonzini wrote: > From: Ming Lei > > The spinlock of tgt_lock is only for serializing read and write > req_vq, one lockless seqcount is enough for the purpose. > > On one 16core VM with vhost-scsi backend, the patch can improve > IOPS with 3% on random read test. > > Signed-off-by: Ming Lei > [Add initialization in virtscsi_target_alloc. - Paolo] > Signed-off-by: Paolo Bonzini Reviewed-by: Venkatesh Srinivas -- vs; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/