提交 d38f8612 编写于 作者: P Philipp Reisner 提交者: Jens Axboe

drbd: Replace 0 with the more meaningful GFP_NOWAIT

GFP_NOWAIT has a value of 0. I.e. functionality not changed.
Signed-off-by: NPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: NLars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: NJens Axboe <axboe@fb.com>
上级 d01efcee
...@@ -4289,7 +4289,7 @@ void drbd_bcast_event(struct drbd_device *device, const struct sib_info *sib) ...@@ -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)) if (nla_put_status_info(msg, device, sib))
goto nla_put_failure; goto nla_put_failure;
genlmsg_end(msg, d_out); 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() */ /* msg has been consumed or freed in netlink_broadcast() */
if (err && err != -ESRCH) if (err && err != -ESRCH)
goto failed; goto failed;
...@@ -4351,7 +4351,7 @@ void notify_resource_state(struct sk_buff *skb, ...@@ -4351,7 +4351,7 @@ void notify_resource_state(struct sk_buff *skb,
goto nla_put_failure; goto nla_put_failure;
genlmsg_end(skb, dh); genlmsg_end(skb, dh);
if (multicast) { 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() */ /* skb has been consumed or freed in netlink_broadcast() */
if (err && err != -ESRCH) if (err && err != -ESRCH)
goto failed; goto failed;
...@@ -4400,7 +4400,7 @@ void notify_device_state(struct sk_buff *skb, ...@@ -4400,7 +4400,7 @@ void notify_device_state(struct sk_buff *skb,
device_statistics_to_skb(skb, &device_statistics, !capable(CAP_SYS_ADMIN)); device_statistics_to_skb(skb, &device_statistics, !capable(CAP_SYS_ADMIN));
genlmsg_end(skb, dh); genlmsg_end(skb, dh);
if (multicast) { 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() */ /* skb has been consumed or freed in netlink_broadcast() */
if (err && err != -ESRCH) if (err && err != -ESRCH)
goto failed; goto failed;
...@@ -4449,7 +4449,7 @@ void notify_connection_state(struct sk_buff *skb, ...@@ -4449,7 +4449,7 @@ void notify_connection_state(struct sk_buff *skb,
connection_statistics_to_skb(skb, &connection_statistics, !capable(CAP_SYS_ADMIN)); connection_statistics_to_skb(skb, &connection_statistics, !capable(CAP_SYS_ADMIN));
genlmsg_end(skb, dh); genlmsg_end(skb, dh);
if (multicast) { 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() */ /* skb has been consumed or freed in netlink_broadcast() */
if (err && err != -ESRCH) if (err && err != -ESRCH)
goto failed; goto failed;
...@@ -4499,7 +4499,7 @@ void notify_peer_device_state(struct sk_buff *skb, ...@@ -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)); peer_device_statistics_to_skb(skb, &peer_device_statistics, !capable(CAP_SYS_ADMIN));
genlmsg_end(skb, dh); genlmsg_end(skb, dh);
if (multicast) { 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() */ /* skb has been consumed or freed in netlink_broadcast() */
if (err && err != -ESRCH) if (err && err != -ESRCH)
goto failed; goto failed;
...@@ -4545,7 +4545,7 @@ void notify_helper(enum drbd_notification_type type, ...@@ -4545,7 +4545,7 @@ void notify_helper(enum drbd_notification_type type,
drbd_helper_info_to_skb(skb, &helper_info, true)) drbd_helper_info_to_skb(skb, &helper_info, true))
goto unlock_fail; goto unlock_fail;
genlmsg_end(skb, dh); genlmsg_end(skb, dh);
err = drbd_genl_multicast_events(skb, 0); err = drbd_genl_multicast_events(skb, GFP_NOWAIT);
skb = NULL; skb = NULL;
/* skb has been consumed or freed in netlink_broadcast() */ /* skb has been consumed or freed in netlink_broadcast() */
if (err && err != -ESRCH) if (err && err != -ESRCH)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册