mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 09:50:04 +00:00
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>
This commit is contained in:
parent
7af3ea189a
commit
5418d0a2c8
1 changed files with 6 additions and 6 deletions
|
@ -1028,21 +1028,21 @@ int ceph_monc_init(struct ceph_mon_client *monc, struct ceph_client *cl)
|
||||||
err = -ENOMEM;
|
err = -ENOMEM;
|
||||||
monc->m_subscribe_ack = ceph_msg_new(CEPH_MSG_MON_SUBSCRIBE_ACK,
|
monc->m_subscribe_ack = ceph_msg_new(CEPH_MSG_MON_SUBSCRIBE_ACK,
|
||||||
sizeof(struct ceph_mon_subscribe_ack),
|
sizeof(struct ceph_mon_subscribe_ack),
|
||||||
GFP_NOFS, true);
|
GFP_KERNEL, true);
|
||||||
if (!monc->m_subscribe_ack)
|
if (!monc->m_subscribe_ack)
|
||||||
goto out_auth;
|
goto out_auth;
|
||||||
|
|
||||||
monc->m_subscribe = ceph_msg_new(CEPH_MSG_MON_SUBSCRIBE, 128, GFP_NOFS,
|
monc->m_subscribe = ceph_msg_new(CEPH_MSG_MON_SUBSCRIBE, 128,
|
||||||
true);
|
GFP_KERNEL, true);
|
||||||
if (!monc->m_subscribe)
|
if (!monc->m_subscribe)
|
||||||
goto out_subscribe_ack;
|
goto out_subscribe_ack;
|
||||||
|
|
||||||
monc->m_auth_reply = ceph_msg_new(CEPH_MSG_AUTH_REPLY, 4096, GFP_NOFS,
|
monc->m_auth_reply = ceph_msg_new(CEPH_MSG_AUTH_REPLY, 4096,
|
||||||
true);
|
GFP_KERNEL, true);
|
||||||
if (!monc->m_auth_reply)
|
if (!monc->m_auth_reply)
|
||||||
goto out_subscribe;
|
goto out_subscribe;
|
||||||
|
|
||||||
monc->m_auth = ceph_msg_new(CEPH_MSG_AUTH, 4096, GFP_NOFS, true);
|
monc->m_auth = ceph_msg_new(CEPH_MSG_AUTH, 4096, GFP_KERNEL, true);
|
||||||
monc->pending_auth = 0;
|
monc->pending_auth = 0;
|
||||||
if (!monc->m_auth)
|
if (!monc->m_auth)
|
||||||
goto out_auth_reply;
|
goto out_auth_reply;
|
||||||
|
|
Loading…
Reference in a new issue