scsi: libsas: Add gfp_t flags parameter to event notifications
[sfrench/cifs-2.6.git] / drivers / scsi / libsas / sas_init.c
index 9ce0cd214eb9d9f03614b7e522f62fdc434636ee..f06b83211e3b98dd4a8a65e56bffc796d1b2948a 100644 (file)
@@ -585,8 +585,8 @@ sas_domain_attach_transport(struct sas_domain_function_template *dft)
 }
 EXPORT_SYMBOL_GPL(sas_domain_attach_transport);
 
-static struct asd_sas_event *__sas_alloc_event(struct asd_sas_phy *phy,
-                                              gfp_t gfp_flags)
+struct asd_sas_event *sas_alloc_event(struct asd_sas_phy *phy,
+                                     gfp_t gfp_flags)
 {
        struct asd_sas_event *event;
        struct sas_ha_struct *sas_ha = phy->ha;
@@ -619,15 +619,11 @@ static struct asd_sas_event *__sas_alloc_event(struct asd_sas_phy *phy,
        return event;
 }
 
-struct asd_sas_event *sas_alloc_event(struct asd_sas_phy *phy)
-{
-       return __sas_alloc_event(phy, in_interrupt() ? GFP_ATOMIC : GFP_KERNEL);
-}
-
 struct asd_sas_event *sas_alloc_event_gfp(struct asd_sas_phy *phy,
                                          gfp_t gfp_flags)
 {
-       return __sas_alloc_event(phy, gfp_flags);
+
+       return sas_alloc_event(phy, gfp_flags);
 }
 
 void sas_free_event(struct asd_sas_event *event)