Skip to content

Commit c115294

Browse files
author
Jens Axboe
committed
Merge branch 'for-jens' of git://git.drbd.org/linux-2.6-drbd into for-linus
2 parents 08d869a + 367a8d7 commit c115294

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

drivers/block/drbd/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44

55
comment "DRBD disabled because PROC_FS, INET or CONNECTOR not selected"
6-
depends on !PROC_FS || !INET || !CONNECTOR
6+
depends on PROC_FS='n' || INET='n' || CONNECTOR='n'
77

88
config BLK_DEV_DRBD
99
tristate "DRBD Distributed Replicated Block Device support"

drivers/block/drbd/drbd_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,6 +1298,7 @@ static void after_state_ch(struct drbd_conf *mdev, union drbd_state os,
12981298
dev_err(DEV, "Sending state in drbd_io_error() failed\n");
12991299
}
13001300

1301+
wait_event(mdev->misc_wait, !atomic_read(&mdev->local_cnt));
13011302
lc_destroy(mdev->resync);
13021303
mdev->resync = NULL;
13031304
lc_destroy(mdev->act_log);

drivers/block/drbd/drbd_nl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,7 @@ static int drbd_nl_net_conf(struct drbd_conf *mdev, struct drbd_nl_cfg_req *nlp,
12711271
goto fail;
12721272
}
12731273

1274-
if (crypto_tfm_alg_type(crypto_hash_tfm(tfm)) != CRYPTO_ALG_TYPE_SHASH) {
1274+
if (!drbd_crypto_is_hash(crypto_hash_tfm(tfm))) {
12751275
retcode = ERR_AUTH_ALG_ND;
12761276
goto fail;
12771277
}

drivers/block/drbd/drbd_receiver.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,10 +1201,11 @@ static int receive_Barrier(struct drbd_conf *mdev, struct p_header *h)
12011201

12021202
case WO_bdev_flush:
12031203
case WO_drain_io:
1204-
D_ASSERT(rv == FE_STILL_LIVE);
1205-
set_bit(DE_BARRIER_IN_NEXT_EPOCH_ISSUED, &mdev->current_epoch->flags);
1206-
drbd_wait_ee_list_empty(mdev, &mdev->active_ee);
1207-
rv = drbd_flush_after_epoch(mdev, mdev->current_epoch);
1204+
if (rv == FE_STILL_LIVE) {
1205+
set_bit(DE_BARRIER_IN_NEXT_EPOCH_ISSUED, &mdev->current_epoch->flags);
1206+
drbd_wait_ee_list_empty(mdev, &mdev->active_ee);
1207+
rv = drbd_flush_after_epoch(mdev, mdev->current_epoch);
1208+
}
12081209
if (rv == FE_RECYCLED)
12091210
return TRUE;
12101211

0 commit comments

Comments
 (0)