disk_conf
dt = rcu_dereference(bdev->disk_conf)->disk_timeout;
write_al_updates = rcu_dereference(device->ldev->disk_conf)->al_updates;
write_al_updates = rcu_dereference(device->ldev->disk_conf)->al_updates;
ep = rcu_dereference(device->ldev->disk_conf)->on_io_error;
struct disk_conf *disk_conf; /* RCU, for updates: resource->conf_update */
bdev->md.meta_dev_idx = bdev->disk_conf->meta_dev_idx;
struct disk_conf *dc;
dc = rcu_dereference(peer_device->device->ldev->disk_conf);
u_size = rcu_dereference(device->ldev->disk_conf)->disk_size;
u_size = rcu_dereference(device->ldev->disk_conf)->disk_size;
static int drbd_check_al_size(struct drbd_device *device, struct disk_conf *dc)
max_segments = rcu_dereference(device->ldev->disk_conf)->max_bio_bvecs;
static bool write_ordering_changed(struct disk_conf *a, struct disk_conf *b)
static void sanitize_disk_conf(struct drbd_device *device, struct disk_conf *disk_conf,
if (disk_conf->al_extents < DRBD_AL_EXTENTS_MIN)
disk_conf->al_extents = DRBD_AL_EXTENTS_MIN;
if (disk_conf->al_extents > drbd_al_extents_max(nbc))
disk_conf->al_extents = drbd_al_extents_max(nbc);
if (disk_conf->rs_discard_granularity) {
disk_conf->rs_discard_granularity = 0; /* disable feature */
if (disk_conf->rs_discard_granularity) {
int orig_value = disk_conf->rs_discard_granularity;
if (discard_granularity > disk_conf->rs_discard_granularity)
disk_conf->rs_discard_granularity = discard_granularity;
remainder = disk_conf->rs_discard_granularity %
disk_conf->rs_discard_granularity += remainder;
if (disk_conf->rs_discard_granularity > discard_size)
disk_conf->rs_discard_granularity = discard_size;
if (disk_conf->rs_discard_granularity != orig_value)
disk_conf->rs_discard_granularity);
static int disk_opts_check_al_size(struct drbd_device *device, struct disk_conf *dc)
struct disk_conf *new_disk_conf, *old_disk_conf;
new_disk_conf = kmalloc_obj(struct disk_conf);
old_disk_conf = device->ldev->disk_conf;
rcu_assign_pointer(device->ldev->disk_conf, new_disk_conf);
struct disk_conf *new_disk_conf,
kfree(ldev->disk_conf);
struct disk_conf *new_disk_conf = NULL;
new_disk_conf = kzalloc_obj(struct disk_conf);
nbc->disk_conf = new_disk_conf;
unsigned long long nsz = drbd_new_dev_size(device, nbc, nbc->disk_conf->disk_size, 0);
if (nsz == nbc->disk_conf->disk_size) {
(ns.pdsk == D_OUTDATED || rcu_dereference(device->ldev->disk_conf)->fencing == FP_DONT_CARE))
if (rcu_dereference(device->ldev->disk_conf)->al_updates)
enum drbd_fencing_p fp = rcu_dereference(device->ldev->disk_conf)->fencing;
struct disk_conf *old_disk_conf, *new_disk_conf = NULL;
u_size = rcu_dereference(device->ldev->disk_conf)->disk_size;
new_disk_conf = kmalloc_obj(struct disk_conf);
old_disk_conf = device->ldev->disk_conf;
rcu_assign_pointer(device->ldev->disk_conf, new_disk_conf);
struct disk_conf *disk_conf =
rcu_dereference(device->ldev->disk_conf);
err = disk_conf_to_skb(skb, disk_conf);
struct disk_conf *disk_conf;
disk_conf = rcu_dereference(device->ldev->disk_conf);
err = disk_conf_to_skb(skb, disk_conf);
struct disk_conf *disk_conf =
rcu_dereference(peer_device->device->ldev->disk_conf);
fp = max_t(enum drbd_fencing_p, fp, disk_conf->fencing);
int disk_conf_to_skb(struct sk_buff *skb, struct disk_conf *s)
void set_disk_conf_defaults(struct disk_conf *x)
static int __disk_conf_from_attrs(struct disk_conf *s,
int disk_conf_from_attrs(struct disk_conf *s,
int disk_conf_from_attrs(struct disk_conf *s, struct genl_info *info);
int disk_conf_to_skb(struct sk_buff *skb, struct disk_conf *s);
void set_disk_conf_defaults(struct disk_conf *x);
struct disk_conf *dc;
dc = rcu_dereference(bdev->disk_conf);
struct disk_conf *dc;
dc = rcu_dereference(device->ldev->disk_conf);
c_min_rate = rcu_dereference(device->ldev->disk_conf)->c_min_rate;
struct disk_conf *old_disk_conf = NULL, *new_disk_conf = NULL;
new_disk_conf = kzalloc_obj(struct disk_conf);
old_disk_conf = device->ldev->disk_conf;
rcu_assign_pointer(device->ldev->disk_conf, new_disk_conf);
my_usize = rcu_dereference(device->ldev->disk_conf)->disk_size;
struct disk_conf *old_disk_conf, *new_disk_conf = NULL;
new_disk_conf = kzalloc_obj(struct disk_conf);
old_disk_conf = device->ldev->disk_conf;
rcu_assign_pointer(device->ldev->disk_conf, new_disk_conf);
rbm = rcu_dereference(device->ldev->disk_conf)->read_balancing;
dt = rcu_dereference(device->ldev->disk_conf)->disk_timeout * HZ / 10;
fp = rcu_dereference(device->ldev->disk_conf)->fencing;
eh = rcu_dereference(device->ldev->disk_conf)->on_io_error;
fp = rcu_dereference(device->ldev->disk_conf)->fencing;
fp = rcu_dereference(device->ldev->disk_conf)->fencing;
resync_after = rcu_dereference(odev->ldev->disk_conf)->resync_after;
resync_after = rcu_dereference(odev->ldev->disk_conf)->resync_after;
struct disk_conf *dc;
dc = rcu_dereference(device->ldev->disk_conf);
device->c_sync_rate = rcu_dereference(device->ldev->disk_conf)->resync_rate;
discard_granularity = rcu_dereference(device->ldev->disk_conf)->rs_discard_granularity;