]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephfs: fix write_buf's _len overflow problem 13587/head
authorYang Honggang <joseph.yang@xtaotech.com>
Thu, 13 Apr 2017 12:09:07 +0000 (20:09 +0800)
committerYang Honggang <joseph.yang@xtaotech.com>
Thu, 13 Apr 2017 12:09:07 +0000 (20:09 +0800)
commiteb915d0eeccbe523f8f70f6571880003ff459459
tree2782c0415a9b1cb2acdf1310b392c0b6a82c147a
parent6016dd9acbd9dab928437b1f1d76522b22d5c241
cephfs: fix write_buf's _len overflow problem

After I have set about 400 64KB xattr kv pair to a file,
mds is crashed. Every time I try to start mds, it will crash again.
The root reason is write_buf._len overflowed when doing
Journaler::append_entry().

This patch try to fix this problem through the following changes:

 1. limit file/dir's xattr size
 2. throttle journal entry append operations

Fixes: http://tracker.ceph.com/issues/19033
Signed-off-by: Yang Honggang joseph.yang@xtaotech.com
src/common/config_opts.h
src/mds/Server.cc
src/osdc/Journaler.cc
src/osdc/Journaler.h