diff options
author | Lars Ellenberg <lars.ellenberg@linbit.com> | 2014-04-23 12:15:35 +0200 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2014-07-10 18:35:08 +0200 |
commit | b9ed7080d7d29112c898c64bad778b84eec0ed2d (patch) | |
tree | fe2f27854645ec6c51ca71a149590e567f3bbbd4 /drivers/block/drbd/drbd_worker.c | |
parent | 41d9f7cd5ba8a488fbc96350141c70c5c01bf8e6 (diff) | |
download | linux-stable-b9ed7080d7d29112c898c64bad778b84eec0ed2d.tar.gz linux-stable-b9ed7080d7d29112c898c64bad778b84eec0ed2d.tar.bz2 linux-stable-b9ed7080d7d29112c898c64bad778b84eec0ed2d.zip |
drbd: consistently use list_add_tail for peer_request tracking
Keep the epoch entry lists (active_ee, read_ee, sync_ee, ...)
consistently "oldest first". That way finding the oldest not yet
successfully processed request is simply list_first_entry_or_null.
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_worker.c b/drivers/block/drbd/drbd_worker.c index 49b88731b349..ad57129289b5 100644 --- a/drivers/block/drbd/drbd_worker.c +++ b/drivers/block/drbd/drbd_worker.c @@ -410,7 +410,7 @@ static int read_for_csum(struct drbd_peer_device *peer_device, sector_t sector, peer_req->w.cb = w_e_send_csum; spin_lock_irq(&device->resource->req_lock); - list_add(&peer_req->w.list, &device->read_ee); + list_add_tail(&peer_req->w.list, &device->read_ee); spin_unlock_irq(&device->resource->req_lock); atomic_add(size >> 9, &device->rs_sect_ev); |