summaryrefslogtreecommitdiff
path: root/fs/ceph/rados.h
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-05-10 21:24:48 +0400
committerSage Weil <sage@newdream.net>2010-05-11 20:53:56 +0400
commitd85b705663905b3dae30007f824355bdcfcf3f00 (patch)
treee47262683ed704786be3f0dae62bc4c57bd50ad7 /fs/ceph/rados.h
parent04d000eb358919043da538f197d63f2a5924a525 (diff)
downloadlinux-d85b705663905b3dae30007f824355bdcfcf3f00.tar.xz
ceph: resubmit requests on pg mapping change (not just primary change)
OSD requests need to be resubmitted on any pg mapping change, not just when the pg primary changes. Resending only when the primary changes results in occasional 'hung' requests during osd cluster recovery or rebalancing. Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/rados.h')
-rw-r--r--fs/ceph/rados.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/rados.h b/fs/ceph/rados.h
index a1fc1d017b58..fd56451a871f 100644
--- a/fs/ceph/rados.h
+++ b/fs/ceph/rados.h
@@ -58,6 +58,7 @@ struct ceph_timespec {
#define CEPH_PG_LAYOUT_LINEAR 2
#define CEPH_PG_LAYOUT_HYBRID 3
+#define CEPH_PG_MAX_SIZE 16 /* max # osds in a single pg */
/*
* placement group.