mtip32xx: use runtime tag to initialize command header
authorMing Lei <ming.lei@redhat.com>
Thu, 27 Apr 2017 13:45:18 +0000 (07:45 -0600)
committerJens Axboe <axboe@fb.com>
Thu, 27 Apr 2017 13:45:18 +0000 (07:45 -0600)
commita4e84aae8139aca9fbfbced1f45c51ca81b57488
tree21b67ddec9938be7ea6222a301074f0274c42780
parent0eebd005dd07c162e6af053be0ab440dd766b1d5
mtip32xx: use runtime tag to initialize command header

mtip32xx supposes that 'request_idx' passed to .init_request()
is tag of the request, and use that as request's tag to initialize
command header.

After MQ IO scheduler is in, request tag assigned isn't same with
the request index anymore, so cause strange hardware failure on
mtip32xx, even whole system panic is triggered.

This patch fixes the issue by initializing command header via
request's real tag.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/mtip32xx/mtip32xx.c