]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb7d21fbd91c02dde4a1822fa62726b11c488a79a
tree21b67ddec9938be7ea6222a301074f0274c42780
parentda99fa62bad421b07576fd31efadcce041e08cf4
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