From 938ece711c5b1ba4fa8e3b9fc8cc03843ae82a5b Mon Sep 17 00:00:00 2001 From: Ming Lei Date: Sun, 6 Jul 2014 16:39:26 +0200 Subject: [PATCH] virtio-scsi: replace target spinlock with seqcount 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 Signed-off-by: Christoph Hellwig --- Reading git-format-patch failed