kernel_optimize_test/drivers/vhost
Nicholas Bellinger 6c131d0c58 vhost/scsi: Drop unnecessary wait_for_tasks=true usage with transport_generic_free_cmd
This patch changes vhost_scsi_free_cmd() to call transport_generic_free_cmd()
with wait_for_tasks=false in order to avoid the extra se_cmd->t_state_lock
access for the wait_for_tasks=true case.

This is unnecessary because vhost_scsi_free_cmd() is only ever called by
vhost_scsi_complete_cmd_work() after TCM completion handoff, and by
vhost_scsi_handle_vq() exception code before TCM submission handoff, so
there is never a case where se_cmd is still active from TCM's perspective
when transport_generic_free_cmd() is called.

Cc: Christoph Hellwig <hch@lst.de>
Cc: Roland Dreier <roland@kernel.org>
Cc: Kent Overstreet <koverstreet@google.com>
Cc: Asias He <asias@redhat.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Or Gerlitz <ogerlitz@mellanox.com>
Cc: Moussa Ba <moussaba@micron.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
2013-06-20 14:10:46 -07:00
..
Kconfig Lots of virtio work which wasn't quite ready for last merge window. Plus 2013-05-02 14:14:04 -07:00
Makefile Lots of virtio work which wasn't quite ready for last merge window. Plus 2013-05-02 14:14:04 -07:00
net.c vhost-net: Cleanup vhost_ubuf and vhost_zcopy 2013-05-06 13:25:47 +03:00
scsi.c vhost/scsi: Drop unnecessary wait_for_tasks=true usage with transport_generic_free_cmd 2013-06-20 14:10:46 -07:00
test.c Lots of virtio work which wasn't quite ready for last merge window. Plus 2013-05-02 14:14:04 -07:00
test.h vhost test module 2010-12-09 16:00:21 +02:00
vhost.c vhost: drop virtio_net.h dependency 2013-05-06 14:04:06 +03:00
vhost.h vhost: Remove vhost_enable_zcopy in vhost.h 2013-05-06 13:21:15 +03:00
vringh.c Add missing module license tag to vring helpers. 2013-05-08 10:49:03 +09:30