summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2022-04-25 15:54:27 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-05-18 10:23:47 +0200
commite06605af8bdc9cd95b934016cdbed318dc1b8f02 (patch)
treeeb5a007acecc7d62ea1e8ed5e6beaa96fde40d6a /samples
parent86db01f37347aacd3a1db90d166f188e02abd623 (diff)
ceph: fix setting of xattrs on async created inodes
commit 620239d9a32e9fe27c9204ec11e40058671aeeb6 upstream. 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 URL: https://bugzilla.redhat.com/show_bug.cgi?id=2063929 Fixes: 9a8d03ca2e2c ("ceph: attempt to do async create when possible") Reported-by: John Fortin <fortinj66@gmail.com> Reported-by: Sri Ramanujam <sri@ramanujam.io> Signed-off-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: Xiubo Li <xiubli@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions