rgw: call throttle_data() even if renew_state() failed

Otherwise we're going to leak the aio callback handle.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
ceph-disk: linter cleanup

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
msg/PipeConnection: make methods behave on 'anon' connection

The monitor does a create_anon_connection() to create a pseudo Connection
object for forwarded messages.  If we try to call mark_down or similar
on one of these we should silently ignore the operation, not crash.

If we try to send a message, still crash (explicitly assert); the caller
should probably know better.

Fixes: #9062
Signed-off-by: Sage Weil <sage@redhat.com>
Merge pull request #2255 from ceph/wip-9062

msg/PipeConnection: make methods behave on 'anon' connection

Reviewed-by: John Spray <john.spray@redhat.com>
Merge pull request #2251 from ceph/wip-9102

ceph-disk: linter cleanup

Reviewed-by: Sage Weil <sage@redhat.com>
Merge pull request #2257 from ceph/wip-8784

rgw: call throttle_data() even if renew_state() failed

Reviewed-by: Sage Weil <sage@redhat.com>
OSDMonitor: Do not allow OSD removal using setmaxosd

Description: Currently setmaxosd command allows removal of OSDs by providing
a number less than current max OSD number. This causes abrupt removal of
OSDs causing data loss as well as kernel panic when kernel RBDs are involved.
Fix is to avoid removal of OSDs if any of the OSDs in the range between
current max OSD number and new max OSD number is part of the cluster.

Fixes: #8865

Signed-off-by: Anand Bhat <anand.bhat@sandisk.com>
qa/workunits/cephtool: verify setmaxosd doesn't let you clobber osds

Signed-off-by: Sage Weil <sage@redhat.com>
rgw: fix compilation

RGWRadosPutObj couldn't refer to the ceph context.

Reviewed-by: Sage Weil <sage@redhat.com>
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
doc: Add documentation about Wireshark dissector.

Signed-Off-By: Kevin Cox <kevincox@kevincox.ca>
Merge pull request #2235 from kevincox/wireshark

doc: Add documentation about Wireshark dissector.

Reviewed-by: Sage Weil <sage@redhat.com>
Merge remote-tracking branch 'gh/next'
common/RWLock: track read/write locks via atomics for assertion checks

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
common/RWLock: check return values

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
common/RWLock: add get()

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
common/RWLock: add explicit unlock() to *Lockers

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
common/RWLock: add lock context

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
time: create RWTimer

a timer implementation that uses RWLock

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
client: adapt to new objecter interface

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
mds: adapt to new objecter interface

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>