mpt3sas: store scsi io tracker data in the scsi request lsi-scsi-mq
authorJens Axboe <axboe@fb.com>
Fri, 3 Apr 2015 16:33:55 +0000 (10:33 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 3 Apr 2015 16:33:55 +0000 (10:33 -0600)
commitafe660b43b27cfb2431552cb68a258d087c3a22a
treed7ce2600ede8c2714178989d8d6bce98a2b8ea18
parentd410135e9187aeb0c13a15d4fd3be2e5d5f4ca65
mpt3sas: 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/mpt3sas/mpt3sas_base.c
drivers/scsi/mpt3sas/mpt3sas_base.h
drivers/scsi/mpt3sas/mpt3sas_ctl.c
drivers/scsi/mpt3sas/mpt3sas_scsih.c