]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: target: tcmu: Make TMR notification optional
authorBodo Stroesser <bstroesser@ts.fujitsu.com>
Sun, 26 Jul 2020 15:35:10 +0000 (17:35 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 29 Jul 2020 02:25:31 +0000 (22:25 -0400)
commit5355aad1c60e6e9949b7a8316042a2ff2ffec215
tree6d5427c894222a2cd35bd68b3063a30768ce1e5d
parent3ed639c4fdfbdf81e0239ce58bf7f7fb65bfcdcb
scsi: target: tcmu: Make TMR notification optional

Add "tmr_notification" configfs attribute to tcmu devices.  If the default
value 0 is used, tcmu only removes aborted commands from qfull_queue.  If
user changes tmr_notification to 1, additionally TMR notifications will be
written to the cmd ring.

Link: https://lore.kernel.org/r/20200726153510.13077-9-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