aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libsas/sas_init.c
diff options
context:
space:
mode:
authorAhmed S. Darwish <[email protected]>2021-01-18 10:09:44 +0000
committerMartin K. Petersen <[email protected]>2021-01-23 02:31:08 +0000
commit19a39831ff99f88ea8d01a2b6716084f14752529 (patch)
tree182b4c03f019f80c1b17ce064cb715d3b287ebd1 /drivers/scsi/libsas/sas_init.c
parentscsi: isci: Pass gfp_t flags in isci_port_bc_change_received() (diff)
downloadkernel-19a39831ff99f88ea8d01a2b6716084f14752529.tar.gz
kernel-19a39831ff99f88ea8d01a2b6716084f14752529.zip
scsi: libsas: Pass gfp_t flags to event notifiers
Use the new libsas event notifiers API, which requires callers to explicitly pass the gfp_t memory allocation flags. Context analysis: - sas_enable_revalidation(): process, acquires mutex - sas_resume_ha(): process, calls wait_event_timeout() Link: https://lore.kernel.org/r/[email protected] Cc: Jason Yan <[email protected]> Reviewed-by: John Garry <[email protected]> Signed-off-by: Ahmed S. Darwish <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/scsi/libsas/sas_init.c')
-rw-r--r--drivers/scsi/libsas/sas_init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/libsas/sas_init.c b/drivers/scsi/libsas/sas_init.c
index f8ae1f0f17d3..9ce0cd214eb9 100644
--- a/drivers/scsi/libsas/sas_init.c
+++ b/drivers/scsi/libsas/sas_init.c
@@ -404,7 +404,8 @@ void sas_resume_ha(struct sas_ha_struct *ha)
if (phy->suspended) {
dev_warn(&phy->phy->dev, "resume timeout\n");
- sas_notify_phy_event(phy, PHYE_RESUME_TIMEOUT);
+ sas_notify_phy_event_gfp(phy, PHYE_RESUME_TIMEOUT,
+ GFP_KERNEL);
}
}