forked from Minki/linux
drbd: don't pretend that barrier_nr == 0 was special
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
This commit is contained in:
parent
0642d5f8e0
commit
f9916d61a4
@ -250,9 +250,7 @@ void _tl_add_barrier(struct drbd_tconn *tconn, struct drbd_tl_epoch *new)
|
||||
new->n_writes = 0;
|
||||
|
||||
newest_before = tconn->newest_tle;
|
||||
/* never send a barrier number == 0, because that is special-cased
|
||||
* when using TCQ for our write ordering code */
|
||||
new->br_number = (newest_before->br_number+1) ?: 1;
|
||||
new->br_number = newest_before->br_number+1;
|
||||
if (tconn->newest_tle != new) {
|
||||
tconn->newest_tle->next = new;
|
||||
tconn->newest_tle = new;
|
||||
|
Loading…
Reference in New Issue
Block a user