]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: fix setting of xattrs on async created inodes
authorJeff Layton <jlayton@kernel.org>
Mon, 25 Apr 2022 19:54:27 +0000 (15:54 -0400)
committerJeff Layton <jlayton@kernel.org>
Fri, 29 Apr 2022 20:06:36 +0000 (16:06 -0400)
commitb7caf551d2fa0ee70df510d70b0adf524f9a16f6
treed3b6de46688797e49f9a7df31120902578009f0e
parenteaae0fc4c21eb694a15b7eb74ad5def0f0521647
ceph: fix setting of xattrs on async created inodes

Currently when we create a file, we spin up an xattr buffer to send
along with the create request. If we end up doing an async create
however, then we currently pass down a zero-length xattr buffer.

Fix the code to send down the xattr buffer in req->r_pagelist. If the
xattrs span more than a page, however give up and don't try to do an
async create.

Cc: <stable@vger.kernel.org>
Fixes: 9a8d03ca2e2c ("ceph: attempt to do async create when possible")
URL: https://bugzilla.redhat.com/show_bug.cgi?id=2063929
Reported-by: John Fortin <fortinj66@gmail.com>
Reported-by: Sri Ramanujam <sri@ramanujam.io>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Xiubo Li <xiubli@redhat.com>
fs/ceph/file.c