From mboxrd@z Thu Jan 1 00:00:00 1970 From: Douglas Fuller Subject: [PATCHv2 0/6] support watch/notify version 2 Date: Wed, 17 Jun 2015 07:25:50 -0700 Message-ID: Return-path: Received: from mx1.redhat.com ([209.132.183.28]:48936 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753849AbbFQO1t (ORCPT ); Wed, 17 Jun 2015 10:27:49 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 5CA5F35C12D for ; Wed, 17 Jun 2015 14:27:49 +0000 (UTC) Received: from rex001.front.sepia.ceph.com ([10.17.112.1]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t5HERn6L030474 for ; Wed, 17 Jun 2015 10:27:49 -0400 Sender: ceph-devel-owner@vger.kernel.org List-ID: To: ceph-devel@vger.kernel.org osd_client, rbd: add support for version 2 of watch/notify Support watch/notify 2 in osd_client and update rbd for compatibility. Map ceph_osd_event to expected watch/notify messages and store watch and watch error callbacks. Implement CEPH_OSD_WATCH_OP_PING and CEPH_OSD_WATCH_OP_RECONNECT. Handle CEPH_WATCH_EVENT_DISCONNECT. Handle CEPH_WATCH_EVENT_NOTIFY_COMPLETE and provide a data item for clients to consume. v2: incorporated changes from Mike, Josh, and Ilya. Changed notify-ack data to page vector and size instead of ceph_msg_data and other fixes. Signed-off-by: Douglas Fuller Douglas Fuller (3): osd_client, rbd: update event interface for watch/notify2 osd_client: add support for notify payloads via notify event osd_client: send watch ping messages Mike Christie (3): ceph/rbd: add support for watch notify payloads ceph/rbd: add support for header version 2 and 3 ceph/rbd: update watch-notify ceph_osd_op drivers/block/rbd.c | 54 ++++-- include/linux/ceph/ceph_fs.h | 6 +- include/linux/ceph/osd_client.h | 55 ++++-- include/linux/ceph/rados.h | 18 +- net/ceph/osd_client.c | 387 +++++++++++++++++++++++++++++++++++----- 5 files changed, 443 insertions(+), 77 deletions(-) -- 1.9.3