]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: core: Add scsi_{get,put}_internal_cmd() helpers
authorHannes Reinecke <hare@suse.de>
Fri, 31 Oct 2025 20:39:14 +0000 (13:39 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 12 Nov 2025 22:02:31 +0000 (17:02 -0500)
commita2ab4e33286de37f3fe8f28f86f5f71d6b0ae3b0
treeff920f5d4fd73520d81d7968c7570b44849af37a
parent11ea1de3fc4ba94127034cb01df63a666c4c9836
scsi: core: Add scsi_{get,put}_internal_cmd() helpers

Add helper functions to allow LLDDs to allocate and free internal commands.

[ bvanassche: changed the 'nowait' argument into a 'flags' argument. See also
  https://lore.kernel.org/linux-scsi/20211125151048.103910-3-hare@suse.de/ ]

Reviewed-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/20251031204029.2883185-7-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_lib.c
include/scsi/scsi_device.h