]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: ufs: core: Make the reserved slot a reserved request
authorBart Van Assche <bvanassche@acm.org>
Fri, 31 Oct 2025 20:39:29 +0000 (13:39 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 12 Nov 2025 22:02:33 +0000 (17:02 -0500)
commit1d0af94ffb5d4c9b99d38646521b6d3e4119d044
tree3febffc6b7109552bb9217c47d96298af71fe8e5
parentd3fd0fd7768681eaeb03742c9e8ae846c505f564
scsi: ufs: core: Make the reserved slot a reserved request

Instead of letting the SCSI core allocate hba->nutrs - 1 commands, let
the SCSI core allocate hba->nutrs commands, set the number of reserved
tags to 1 and use the reserved tag for device management commands. This
patch changes the 'reserved slot' from hba->nutrs - 1 into 0 because the
block layer reserves the smallest tags for reserved commands.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/20251031204029.2883185-22-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufshcd.c