lpfc_scsi.c (f930b69a8944ab3f018e2a175ddbd16e71348df9) | lpfc_scsi.c (db05628435aa761d30b4eae481a82befe7a8492a) |
---|---|
1/******************************************************************* 2 * This file is part of the Emulex Linux Device Driver for * 3 * Fibre Channel Host Bus Adapters. * 4 * Copyright (C) 2017-2022 Broadcom. All Rights Reserved. The term * 5 * “Broadcom” refers to Broadcom Inc. and/or its subsidiaries. * 6 * Copyright (C) 2004-2016 Emulex. All rights reserved. * 7 * EMULEX and SLI are trademarks of Emulex. * 8 * www.broadcom.com * --- 5514 unchanged lines hidden (view full) --- 5523 * lpfc_is_command_vm_io - get the UUID from blk cgroup 5524 * @cmd: Pointer to scsi_cmnd data structure 5525 * Returns UUID if present, otherwise NULL 5526 */ 5527static char *lpfc_is_command_vm_io(struct scsi_cmnd *cmd) 5528{ 5529 struct bio *bio = scsi_cmd_to_rq(cmd)->bio; 5530 | 1/******************************************************************* 2 * This file is part of the Emulex Linux Device Driver for * 3 * Fibre Channel Host Bus Adapters. * 4 * Copyright (C) 2017-2022 Broadcom. All Rights Reserved. The term * 5 * “Broadcom” refers to Broadcom Inc. and/or its subsidiaries. * 6 * Copyright (C) 2004-2016 Emulex. All rights reserved. * 7 * EMULEX and SLI are trademarks of Emulex. * 8 * www.broadcom.com * --- 5514 unchanged lines hidden (view full) --- 5523 * lpfc_is_command_vm_io - get the UUID from blk cgroup 5524 * @cmd: Pointer to scsi_cmnd data structure 5525 * Returns UUID if present, otherwise NULL 5526 */ 5527static char *lpfc_is_command_vm_io(struct scsi_cmnd *cmd) 5528{ 5529 struct bio *bio = scsi_cmd_to_rq(cmd)->bio; 5530 |
5531 return bio ? blkcg_get_fc_appid(bio) : NULL; | 5531 if (!IS_ENABLED(CONFIG_BLK_CGROUP_FC_APPID) || !bio) 5532 return NULL; 5533 return blkcg_get_fc_appid(bio); |
5532} 5533 5534/** 5535 * lpfc_queuecommand - scsi_host_template queuecommand entry point 5536 * @shost: kernel scsi host pointer. 5537 * @cmnd: Pointer to scsi_cmnd data structure. 5538 * 5539 * Driver registers this routine to scsi midlayer to submit a @cmd to process. --- 1568 unchanged lines hidden --- | 5534} 5535 5536/** 5537 * lpfc_queuecommand - scsi_host_template queuecommand entry point 5538 * @shost: kernel scsi host pointer. 5539 * @cmnd: Pointer to scsi_cmnd data structure. 5540 * 5541 * Driver registers this routine to scsi midlayer to submit a @cmd to process. --- 1568 unchanged lines hidden --- |