X-Git-Url: http://git.onelab.eu/?p=linux-2.6.git;a=blobdiff_plain;f=fs%2Fafs%2Fkafsasyncd.c;fp=fs%2Fafs%2Fkafsasyncd.c;h=7ac07d0d47b91b90e4c40dc16216e50b5876d0af;hp=f09a794f248e33a4b8ad192acbf957aec2dd399b;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c diff --git a/fs/afs/kafsasyncd.c b/fs/afs/kafsasyncd.c index f09a794f2..7ac07d0d4 100644 --- a/fs/afs/kafsasyncd.c +++ b/fs/afs/kafsasyncd.c @@ -136,7 +136,8 @@ static int kafsasyncd(void *arg) if (!list_empty(&kafsasyncd_async_attnq)) { op = list_entry(kafsasyncd_async_attnq.next, struct afs_async_op, link); - list_move_tail(&op->link, + list_del(&op->link); + list_add_tail(&op->link, &kafsasyncd_async_busyq); } @@ -203,7 +204,8 @@ void afs_kafsasyncd_begin_op(struct afs_async_op *op) init_waitqueue_entry(&op->waiter, kafsasyncd_task); add_wait_queue(&op->call->waitq, &op->waiter); - list_move_tail(&op->link, &kafsasyncd_async_busyq); + list_del(&op->link); + list_add_tail(&op->link, &kafsasyncd_async_busyq); spin_unlock(&kafsasyncd_async_lock); @@ -221,7 +223,8 @@ void afs_kafsasyncd_attend_op(struct afs_async_op *op) spin_lock(&kafsasyncd_async_lock); - list_move_tail(&op->link, &kafsasyncd_async_attnq); + list_del(&op->link); + list_add_tail(&op->link, &kafsasyncd_async_attnq); spin_unlock(&kafsasyncd_async_lock);