scsi: target: iblock: Quiet bool conversion warning with pr_preempt use
authorMike Christie <michael.christie@oracle.com>
Fri, 23 Jun 2023 16:11:36 +0000 (11:11 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 29 Jun 2023 01:58:36 +0000 (21:58 -0400)
commit40863cb945c93a55aeaf8a2fd2bef1c7507ee8f2
treef07a8bc347b60095d5001d8e91f2794581b73170
parent9b7c13b83c1dedb79a746eae9dfabc10a2673049
scsi: target: iblock: Quiet bool conversion warning with pr_preempt use

We want to pass in true for pr_preempt's argument if we are doing a
PRO_PREEMPT_AND_ABORT, so just test sa against PRO_PREEMPT_AND_ABORT, and
pass the result directly to pr_preempt.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202306221655.Kwtqi1gI-lkp@intel.com/
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Link: https://lore.kernel.org/r/20230623161136.6270-1-michael.christie@oracle.com
Reviewed-by: Maurizio Lombardi <mlombard@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_iblock.c