Commit 67186ffe authored by Lars Ellenberg's avatar Lars Ellenberg Committed by Philipp Reisner

fix bogus comment

Signed-off-by: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
parent 2c4aa049
......@@ -1693,9 +1693,6 @@ static int receive_Data(struct drbd_conf *mdev, struct p_header *h)
return FALSE;
if (!get_ldev(mdev)) {
/* data is submitted to disk at the end of this function.
* corresponding put_ldev done either below (on error),
* or in drbd_endio_write_sec. */
if (__ratelimit(&drbd_ratelimit_state))
dev_err(DEV, "Can not write mirrored data block "
"to local disk.\n");
......@@ -1709,6 +1706,11 @@ static int receive_Data(struct drbd_conf *mdev, struct p_header *h)
return drbd_drain_block(mdev, data_size);
}
/* get_ldev(mdev) successful.
* Corresponding put_ldev done either below (on various errors),
* or in drbd_endio_write_sec, if we successfully submit the data at
* the end of this function. */
sector = be64_to_cpu(p->sector);
e = read_in_block(mdev, p->block_id, sector, data_size);
if (!e) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment