diff options
author | 2014-05-08 15:23:45 +0800 | |
---|---|---|
committer | 2014-05-19 19:12:26 +0200 | |
commit | f259d9bdd2fb13926dd16ffacd3417d610c23e8c (patch) | |
tree | beb1cc910276e95e9e8623366fca0a26fb76a570 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | lpfc: Add iotag memory barrier (diff) | |
download | linux-dev-f259d9bdd2fb13926dd16ffacd3417d610c23e8c.tar.xz linux-dev-f259d9bdd2fb13926dd16ffacd3417d610c23e8c.zip |
virtio_scsi: remove ACCESS_ONCE() and smp_read_barrier_depends()
Access to tgt->req_vq is strictly serialized by spin_lock
of tgt->tgt_lock, so the ACCESS_ONCE() isn't necessary.
smp_read_barrier_depends() in virtscsi_req_done was introduced
to order reading req_vq and decreasing tgt->reqs, but it isn't
needed now because req_vq is read from
scsi->req_vqs[vq->index - VIRTIO_SCSI_VQ_BASE] instead of
tgt->req_vq, so remove the unnecessary barrier.
Also remove related comment about the barrier.
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions