diff options
author | Andreas Gruenbacher <agruen@linbit.com> | 2011-01-11 08:04:09 -0500 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2011-08-25 08:57:55 -0400 |
commit | 9a8e77530fa7059044114bcf1a897a470ec21bc9 (patch) | |
tree | 2561f734e7a3054bdf151495311cde4a582189e5 /drivers/block/drbd/drbd_worker.c | |
parent | 3980485361f5f71e559c6b8868bb5a1c41171407 (diff) |
drbd: Consistently use block_id == ID_SYNCER for checksum based resync and online verify
DRBD_MAGIC has nothing to do with block ids and the funny values
computed were not actually used, anyway.
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_worker.c')
-rw-r--r-- | drivers/block/drbd/drbd_worker.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/block/drbd/drbd_worker.c b/drivers/block/drbd/drbd_worker.c index 4d3e6f6213ba..10438c41f559 100644 --- a/drivers/block/drbd/drbd_worker.c +++ b/drivers/block/drbd/drbd_worker.c | |||
@@ -305,8 +305,6 @@ int w_e_send_csum(struct drbd_conf *mdev, struct drbd_work *w, int cancel) | |||
305 | void *digest; | 305 | void *digest; |
306 | int ok = 1; | 306 | int ok = 1; |
307 | 307 | ||
308 | D_ASSERT(e->block_id == DRBD_MAGIC + 0xbeef); | ||
309 | |||
310 | if (unlikely(cancel)) | 308 | if (unlikely(cancel)) |
311 | goto out; | 309 | goto out; |
312 | 310 | ||
@@ -359,7 +357,7 @@ static int read_for_csum(struct drbd_conf *mdev, sector_t sector, int size) | |||
359 | 357 | ||
360 | /* GFP_TRY, because if there is no memory available right now, this may | 358 | /* GFP_TRY, because if there is no memory available right now, this may |
361 | * be rescheduled for later. It is "only" background resync, after all. */ | 359 | * be rescheduled for later. It is "only" background resync, after all. */ |
362 | e = drbd_alloc_ee(mdev, DRBD_MAGIC+0xbeef, sector, size, GFP_TRY); | 360 | e = drbd_alloc_ee(mdev, ID_SYNCER /* unused */, sector, size, GFP_TRY); |
363 | if (!e) | 361 | if (!e) |
364 | goto defer; | 362 | goto defer; |
365 | 363 | ||