mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 02:15:21 +07:00
463563fa74
Out of the three callers once insists on the scratch buffer, and the others are fine with a new allocation. Switch those two to just use pci_alloc_consistent directly, and open code the scratch buffer allocation in the remaining one. This avoids a case where we might be doing a memory allocation under a spinlock with irqs disabled. [mkp: typo] Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
19 lines
488 B
C
19 lines
488 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _GDTH_PROC_H
|
|
#define _GDTH_PROC_H
|
|
|
|
/* gdth_proc.h
|
|
* $Id: gdth_proc.h,v 1.16 2004/01/14 13:09:01 achim Exp $
|
|
*/
|
|
|
|
int gdth_execute(struct Scsi_Host *shost, gdth_cmd_str *gdtcmd, char *cmnd,
|
|
int timeout, u32 *info);
|
|
|
|
static int gdth_set_asc_info(struct Scsi_Host *host, char *buffer,
|
|
int length, gdth_ha_str *ha);
|
|
|
|
static void gdth_wait_completion(gdth_ha_str *ha, int busnum, int id);
|
|
|
|
#endif
|
|
|