Skip to content

Commit 5418d0a

Browse files
committed
libceph: no need for GFP_NOFS in ceph_monc_init()
It's called during inital setup, when everything should be allocated with GFP_KERNEL. Signed-off-by: Ilya Dryomov <idryomov@gmail.com> Reviewed-by: Sage Weil <sage@redhat.com>
1 parent 7af3ea1 commit 5418d0a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

net/ceph/mon_client.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,21 +1028,21 @@ int ceph_monc_init(struct ceph_mon_client *monc, struct ceph_client *cl)
10281028
err = -ENOMEM;
10291029
monc->m_subscribe_ack = ceph_msg_new(CEPH_MSG_MON_SUBSCRIBE_ACK,
10301030
sizeof(struct ceph_mon_subscribe_ack),
1031-
GFP_NOFS, true);
1031+
GFP_KERNEL, true);
10321032
if (!monc->m_subscribe_ack)
10331033
goto out_auth;
10341034

1035-
monc->m_subscribe = ceph_msg_new(CEPH_MSG_MON_SUBSCRIBE, 128, GFP_NOFS,
1036-
true);
1035+
monc->m_subscribe = ceph_msg_new(CEPH_MSG_MON_SUBSCRIBE, 128,
1036+
GFP_KERNEL, true);
10371037
if (!monc->m_subscribe)
10381038
goto out_subscribe_ack;
10391039

1040-
monc->m_auth_reply = ceph_msg_new(CEPH_MSG_AUTH_REPLY, 4096, GFP_NOFS,
1041-
true);
1040+
monc->m_auth_reply = ceph_msg_new(CEPH_MSG_AUTH_REPLY, 4096,
1041+
GFP_KERNEL, true);
10421042
if (!monc->m_auth_reply)
10431043
goto out_subscribe;
10441044

1045-
monc->m_auth = ceph_msg_new(CEPH_MSG_AUTH, 4096, GFP_NOFS, true);
1045+
monc->m_auth = ceph_msg_new(CEPH_MSG_AUTH, 4096, GFP_KERNEL, true);
10461046
monc->pending_auth = 0;
10471047
if (!monc->m_auth)
10481048
goto out_auth_reply;

0 commit comments

Comments
 (0)