nvme: check the PRINFO bit before deciding the host buffer length
stable inclusion from stable-5.10.14 commit 57f26d9d09d64e0b31bedffdd0de460215675ca9 bugzilla: 48051 -------------------------------- [ Upstream commit 4d6b1c95 ] According to NVMe spec v1.4, section 8.3.1, the PRINFO bit and the metadata size play a vital role in deteriming the host buffer size. If PRIFNO bit is set and MS==8, the host doesn't add the metadata buffer, instead the controller adds it. Signed-off-by:Revanth Rajashekar <revanth.rajashekar@intel.com> Signed-off-by:
Christoph Hellwig <hch@lst.de> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com> Acked-by:
Xie XiuQi <xiexiuqi@huawei.com>
Loading
Please sign in to comment