]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: target: tcmu: Factor out new helper ring_insert_padding
authorBodo Stroesser <bstroesser@ts.fujitsu.com>
Sun, 26 Jul 2020 15:35:07 +0000 (17:35 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 29 Jul 2020 02:25:28 +0000 (22:25 -0400)
commit3ea962b5d4994df00c921c516c916bfb1cb766ba
tree6d65861353832f2da74c4f1100686ec0f0da2982
parentcb7e815e4fdfcba7f35b81074c04c706ad88c163
scsi: target: tcmu: Factor out new helper ring_insert_padding

The new helper ring_insert_padding is split off from and then called by
queue_cmd_ring. It inserts a padding if necessary.  The new helper will in
a subsequent patch be used during writing of TMR notifications to command
ring.

Link: https://lore.kernel.org/r/20200726153510.13077-6-bstroesser@ts.fujitsu.com
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Bodo Stroesser <bstroesser@ts.fujitsu.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_user.c