Lines Matching refs:disk

1265 		drbd_info(device, "local disk FLUSH FAILED with status %d\n", bio->bi_status);
1337 * if disk-timeout is set? */
1923 drbd_err(device, "request from peer beyond end of local disk: "
2195 /* data is submitted to disk within recv_resync_read.
2201 drbd_err(device, "Can not write resync data to local disk.\n");
2726 /* In case we have the only disk of the cluster, */
2792 struct gendisk *disk = device->ldev->backing_bdev->bd_disk;
2805 curr_events = (int)part_stat_read_accum(&disk->part0, sectors) -
3309 device->state.disk >= D_NEGOTIATING ? drbd_bm_total_weight(device) : 0, 0);
3450 device->state.disk >= D_NEGOTIATING ? drbd_bm_total_weight(device) : 0, 0);
3497 mydisk = device->state.disk;
3499 mydisk = device->new_state_tmp.disk;
3537 drbd_info(device, "Becoming sync %s due to disk states.\n",
3595 * to that disk, in a way... */
3607 device->state.role == R_PRIMARY && device->state.disk >= D_CONSISTENT) {
4113 int ldsc = 0; /* local disk size changed */
4126 /* just store the peer's disk size for now.
4150 device->state.disk >= D_OUTDATED &&
4152 drbd_err(device, "The peer's disk size is too small! (%llu < %llu sectors)\n",
4203 * I must NOT accept the peers backing disk size,
4206 * At this point, the peer knows more about my disk, or at
4212 * take his (user-capped or) backing disk size anyways.
4214 * Unless of course he does not have a disk himself.
4236 * and he has the only disk
4238 * and he has the only disk,
4264 device->state.disk >= D_INCONSISTENT) {
4303 device->state.disk < D_INCONSISTENT &&
4325 _drbd_set_state(_NS2(device, disk, D_UP_TO_DATE, pdsk, D_UP_TO_DATE),
4331 } else if (device->state.disk < D_INCONSISTENT &&
4338 /* Before we test for the disk state, we should wait until an eventually
4340 we are primary and are detaching from our disk. We need to see the
4341 new disk state... */
4344 if (device->state.conn >= C_CONNECTED && device->state.disk < D_INCONSISTENT)
4377 ms.pdsk = ps.disk;
4378 ms.disk = ps.pdsk;
4458 real_peer_disk = peer_state.disk;
4459 if (peer_state.disk == D_NEGOTIATING) {
4461 drbd_info(device, "real peer disk state = %s\n", drbd_disk_str(real_peer_disk));
4475 /* If this is the "end of sync" confirmation, usually the peer disk
4478 * unpause-sync events has been "just right", the peer disk may
4483 os.conn > C_CONNECTED && os.disk == D_UP_TO_DATE) {
4506 if (os.conn == C_VERIFY_T && os.disk == D_UP_TO_DATE &&
4513 /* peer says his disk is inconsistent, while we think it is uptodate,
4547 if (device->p_uuid && peer_state.disk >= D_NEGOTIATING &&
4554 * and one of the nodes newly attaches a disk */
4556 (peer_state.disk == D_NEGOTIATING ||
4557 os.disk == D_NEGOTIATING));
4573 if (device->state.disk == D_NEGOTIATING) {
4574 drbd_force_state(device, NS(disk, D_FAILED));
4575 } else if (peer_state.disk == D_NEGOTIATING) {
4577 peer_state.disk = D_DISKLESS;
4596 if ((ns.conn == C_CONNECTED || ns.conn == C_WF_BITMAP_S) && ns.disk == D_NEGOTIATING)
4597 ns.disk = device->new_state_tmp.disk;
4622 peer_state.disk != D_NEGOTIATING ) {
4625 setting its disk to UpToDate with that */
4653 device->state.disk < D_NEGOTIATING);
5230 * the disk-IO, while the rs_pending_cnt only tracks the blocks