block: t10-pi: Return correct ref tag when queue has no integrity profile
authorAnuj Gupta <anuj20.g@samsung.com>
Thu, 4 Jul 2024 06:15:15 +0000 (11:45 +0530)
committerJens Axboe <axboe@kernel.dk>
Thu, 4 Jul 2024 08:02:33 +0000 (02:02 -0600)
commit162e06871e6dcde861ef608e0c00a8b6a2d35d43
treea663da2d1e6b7ad1c1690da9dda64d18ceb7d7ae
parent98d34c087249d39838874b83e17671e7d5eb1ca7
block: t10-pi: Return correct ref tag when queue has no integrity profile

Commit c6e56cf6b2e7 ("block: move integrity information into
queue_limits") changed the ref tag calculation logic. It would break if
there is no integrity profile. This in turn causes read/write failures
for such cases.

Fixes: c6e56cf6b2e7 ("block: move integrity information into queue_limits")
Signed-off-by: Anuj Gupta <anuj20.g@samsung.com>
Link: https://lore.kernel.org/r/20240704061515.282343-1-joshi.k@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/t10-pi.h