]> 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)
commit2716139f86f7dfcd08abaee49db479ef6d80396e
tree21b67ddec9938be7ea6222a301074f0274c42780
parent67af039a958594c5c4a49f2e4640255060d3ece4
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