scsi: target: core: Move buffer clearing hack
authorMike Christie <michael.christie@oracle.com>
Thu, 28 Sep 2023 02:09:03 +0000 (21:09 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 13 Oct 2023 19:53:58 +0000 (15:53 -0400)
commit5c48a4ea32806f3d74731f7304f5fbf2035ab985
tree739bc846ca0eb436fc97830fa53119672b5b3665
parentee48345e1ccaaa7a9f0a8b34c694a68286ac78fa
scsi: target: core: Move buffer clearing hack

Move the hack to clear some buffers to transport_handle_cdb_direct() so we
can eventually merge transport_handle_cdb_direct() and target_submit().

This also fixes up the comment so it's clear it was only for udev and
reflects that the referenced function does not exist and we now allow more
than 1 page for control CDBs.

Signed-off-by: Mike Christie <michael.christie@oracle.com>
Link: https://lore.kernel.org/r/20230928020907.5730-4-michael.christie@oracle.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_transport.c