]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: handle_one_map()
authorIlya Dryomov <idryomov@gmail.com>
Thu, 28 Apr 2016 14:07:25 +0000 (16:07 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 25 May 2016 23:12:27 +0000 (01:12 +0200)
commit842c75ec9d816a7c9e54a80884bc5fd1d232f4bb
tree0bae037f5d57712f1bfb843d7840b5f566aff369
parent722373a0acce2ed96830bbb9721263a5020d8d07
libceph: handle_one_map()

Separate osdmap handling from decoding and iterating over a bag of maps
in a fresh MOSDMap message.  This sets up the scene for the updated OSD
client.

Of particular importance here is the addition of pi->was_full, which
can be used to answer "did this pool go full -> not-full in this map?".
This is the key bit for supporting pool quotas.

We won't be able to downgrade map_sem for much longer, so drop
downgrade_write().

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
include/linux/ceph/mon_client.h
include/linux/ceph/osdmap.h
net/ceph/mon_client.c
net/ceph/osd_client.c