mpt2sas: store scsi io tracker data in the scsi request
authorJens Axboe <axboe@fb.com>
Fri, 3 Apr 2015 16:33:03 +0000 (10:33 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 3 Apr 2015 16:33:03 +0000 (10:33 -0600)
commitd410135e9187aeb0c13a15d4fd3be2e5d5f4ca65
treedf5c425ad212ebb95312484ff8b57a886d3ca0ae
parent21a646d20765cda47818e10f7485471eb0d75d5c
mpt2sas: store scsi io tracker data in the scsi request

Instead of storing the IO tracker structure in a separate list
that we need to pop/push to on every submit and complete (and
lock), store it in the pdu associated with a request. This is
possible on scsi-mq only, and further cuts the spinlock associated
time for higher IOPS IO workloads. At 100K IOPS, this effectively
cuts the locking time in half.

Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/scsi/mpt2sas/mpt2sas_base.c
drivers/scsi/mpt2sas/mpt2sas_base.h
drivers/scsi/mpt2sas/mpt2sas_ctl.c
drivers/scsi/mpt2sas/mpt2sas_scsih.c