From: Philipp Reisner Date: Wed, 10 Dec 2014 14:26:57 +0000 (+0100) Subject: drbd: Replace 0 with the more meaningful GFP_NOWAIT X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d38f8612298d463cb5dbffdbac6db6e38c5dd22f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drbd: Replace 0 with the more meaningful GFP_NOWAIT GFP_NOWAIT has a value of 0. I.e. functionality not changed. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg Signed-off-by: Jens Axboe --- diff --git a/drivers/block/drbd/drbd_nl.c b/drivers/block/drbd/drbd_nl.c index b87fb313660e..af78f0906cb2 100644 --- a/drivers/block/drbd/drbd_nl.c +++ b/drivers/block/drbd/drbd_nl.c @@ -4289,7 +4289,7 @@ void drbd_bcast_event(struct drbd_device *device, const struct sib_info *sib) if (nla_put_status_info(msg, device, sib)) goto nla_put_failure; genlmsg_end(msg, d_out); - err = drbd_genl_multicast_events(msg, 0); + err = drbd_genl_multicast_events(msg, GFP_NOWAIT); /* msg has been consumed or freed in netlink_broadcast() */ if (err && err != -ESRCH) goto failed; @@ -4351,7 +4351,7 @@ void notify_resource_state(struct sk_buff *skb, goto nla_put_failure; genlmsg_end(skb, dh); if (multicast) { - err = drbd_genl_multicast_events(skb, 0); + err = drbd_genl_multicast_events(skb, GFP_NOWAIT); /* skb has been consumed or freed in netlink_broadcast() */ if (err && err != -ESRCH) goto failed; @@ -4400,7 +4400,7 @@ void notify_device_state(struct sk_buff *skb, device_statistics_to_skb(skb, &device_statistics, !capable(CAP_SYS_ADMIN)); genlmsg_end(skb, dh); if (multicast) { - err = drbd_genl_multicast_events(skb, 0); + err = drbd_genl_multicast_events(skb, GFP_NOWAIT); /* skb has been consumed or freed in netlink_broadcast() */ if (err && err != -ESRCH) goto failed; @@ -4449,7 +4449,7 @@ void notify_connection_state(struct sk_buff *skb, connection_statistics_to_skb(skb, &connection_statistics, !capable(CAP_SYS_ADMIN)); genlmsg_end(skb, dh); if (multicast) { - err = drbd_genl_multicast_events(skb, 0); + err = drbd_genl_multicast_events(skb, GFP_NOWAIT); /* skb has been consumed or freed in netlink_broadcast() */ if (err && err != -ESRCH) goto failed; @@ -4499,7 +4499,7 @@ void notify_peer_device_state(struct sk_buff *skb, peer_device_statistics_to_skb(skb, &peer_device_statistics, !capable(CAP_SYS_ADMIN)); genlmsg_end(skb, dh); if (multicast) { - err = drbd_genl_multicast_events(skb, 0); + err = drbd_genl_multicast_events(skb, GFP_NOWAIT); /* skb has been consumed or freed in netlink_broadcast() */ if (err && err != -ESRCH) goto failed; @@ -4545,7 +4545,7 @@ void notify_helper(enum drbd_notification_type type, drbd_helper_info_to_skb(skb, &helper_info, true)) goto unlock_fail; genlmsg_end(skb, dh); - err = drbd_genl_multicast_events(skb, 0); + err = drbd_genl_multicast_events(skb, GFP_NOWAIT); skb = NULL; /* skb has been consumed or freed in netlink_broadcast() */ if (err && err != -ESRCH)