nvme: don't overwrite req->cmd_flags on sync cmd
authorMatias Bjørling <m@bjorling.me>
Fri, 5 Jun 2015 12:54:24 +0000 (14:54 +0200)
committerJens Axboe <axboe@fb.com>
Wed, 17 Jun 2015 15:36:57 +0000 (09:36 -0600)
commite112af0dc9f55099b948e55077504a44b4162c79
tree77a0b706aca0138cc6c26381fa63da768b0b3a67
parent2f17d71dd71fe62957f155eee028c6ba79c79f01
nvme: don't overwrite req->cmd_flags on sync cmd

In __nvme_submit_sync_cmd, the request direction is overwritten when
the REQ_FAILFAST_DRIVER flag is set.

Signed-off-by: Matias Bjørling <m@bjorling.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Fixes: 75619bfa904d0 ("NVMe: End sync requests immediately on failure")
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nvme-core.c