skd: Submit requests to firmware before triggering the doorbell
authorBart Van Assche <bart.vanassche@wdc.com>
Thu, 17 Aug 2017 20:12:46 +0000 (13:12 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 18 Aug 2017 14:45:29 +0000 (08:45 -0600)
commit5fbd545cd3fd311ea1d6e8be4cedddd0ee5684c7
treefaa32b7764ef6dbcd52e9feebb8459f7e84813f1
parent7277cc67b3916eed47558c64f9c9c0de00a35cda
skd: Submit requests to firmware before triggering the doorbell

Ensure that the members of struct skd_msg_buf have been transferred
to the PCIe adapter before the doorbell is triggered. This patch
avoids that I/O fails sporadically and that the following error
message is reported:

(skd0:STM000196603:[0000:00:09.0]): Completion mismatch comp_id=0x0000 skreq=0x0400 new=0x0000

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/skd_main.c