summaryrefslogtreecommitdiffstats
path: root/drivers/block/nvme-scsi.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2015-05-22 11:12:44 +0200
committerJens Axboe <axboe@fb.com>2015-05-22 08:36:42 -0600
commit908517684807f3b3d93893da78c7906f5ff2c49b (patch)
treedeff7444658b44371f8faf90322bbe0b18d6f8bb /drivers/block/nvme-scsi.c
parentcbbb7a2ec6001a0c15297c85184c9cc7fae5f11e (diff)
downloadop-kernel-dev-908517684807f3b3d93893da78c7906f5ff2c49b.zip
op-kernel-dev-908517684807f3b3d93893da78c7906f5ff2c49b.tar.gz
nvme: report the DPOFUA in MODE_SENSE
NVMe device always support the FUA bit, and the SCSI translations accepts the DPO bit, which doesn't have much of a meaning for us. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block/nvme-scsi.c')
-rw-r--r--drivers/block/nvme-scsi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/nvme-scsi.c b/drivers/block/nvme-scsi.c
index b119143..f53da60 100644
--- a/drivers/block/nvme-scsi.c
+++ b/drivers/block/nvme-scsi.c
@@ -999,14 +999,14 @@ static int nvme_trans_fill_mode_parm_hdr(u8 *resp, int len, u8 cdb10, u8 llbaa,
if (cdb10) {
resp[0] = (mode_data_length & 0xFF00) >> 8;
resp[1] = (mode_data_length & 0x00FF);
- /* resp[2] and [3] are zero */
+ resp[3] = 0x10 /* DPOFUA */;
resp[4] = llbaa;
resp[5] = RESERVED_FIELD;
resp[6] = (blk_desc_len & 0xFF00) >> 8;
resp[7] = (blk_desc_len & 0x00FF);
} else {
resp[0] = (mode_data_length & 0x00FF);
- /* resp[1] and [2] are zero */
+ resp[2] = 0x10 /* DPOFUA */;
resp[3] = (blk_desc_len & 0x00FF);
}
OpenPOWER on IntegriCloud