Lines Matching defs:ceph_mds_client
442 struct ceph_mds_client { struct
443 struct ceph_fs_client *fsc;
444 struct mutex mutex; /* all nested structures */
446 struct ceph_mdsmap *mdsmap;
447 struct completion safe_umount_waiters;
448 wait_queue_head_t session_close_wq;
449 struct list_head waiting_for_map;
450 int mdsmap_err;
452 struct ceph_mds_session **sessions; /* NULL for mds if no session */
453 atomic_t num_sessions;
454 int max_sessions; /* len of sessions array */
456 spinlock_t stopping_lock; /* protect snap_empty */
457 int stopping; /* the stage of shutting down */
458 atomic_t stopping_blockers;
459 struct completion stopping_waiter;
461 atomic64_t quotarealms_count; /* # realms with quota */
466 struct rb_root quotarealms_inodes;
467 struct mutex quotarealms_inodes_mutex;
476 u64 last_snap_seq;
477 struct rw_semaphore snap_rwsem;
478 struct rb_root snap_realms;
479 struct list_head snap_empty;
480 int num_snap_realms;
481 spinlock_t snap_empty_lock; /* protect snap_empty */
483 u64 last_tid; /* most recent mds request */
484 u64 oldest_tid; /* oldest incomplete mds request,
486 struct rb_root request_tree; /* pending mds requests */
487 struct delayed_work delayed_work; /* delayed work */
488 unsigned long last_renew_caps; /* last time we renewed our caps */
489 struct list_head cap_delay_list; /* caps with delayed release */
490 struct list_head cap_unlink_delay_list; /* caps with delayed release for unlink */
491 spinlock_t cap_delay_lock; /* protects cap_delay_list and cap_unlink_delay_list */
492 struct list_head snap_flush_list; /* cap_snaps ready to flush */
493 spinlock_t snap_flush_lock;
495 u64 last_cap_flush_tid;
496 struct list_head cap_flush_list;
497 struct list_head cap_dirty_migrating; /* ...that are migration... */
498 int num_cap_flushing; /* # caps we are flushing */
499 spinlock_t cap_dirty_lock; /* protects above items */
500 wait_queue_head_t cap_flushing_wq;
502 struct work_struct cap_reclaim_work;
503 atomic_t cap_reclaim_pending;
505 struct work_struct cap_unlink_work;
518 spinlock_t caps_list_lock;
519 struct list_head caps_list; /* unused (reserved or
522 struct list_head cap_wait_list;
524 int caps_total_count; /* total caps allocated */
525 int caps_use_count; /* in use */
526 int caps_use_max; /* max used caps */
527 int caps_reserve_count; /* unused, reserved */
528 int caps_avail_count; /* unused, unreserved */
529 int caps_min_count; /* keep at least this many
531 spinlock_t dentry_list_lock;
532 struct list_head dentry_leases; /* fifo list */
556 __ceph_lookup_mds_session(struct ceph_mds_client *, int mds); argument