X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=fs%2Fafs%2Fkafsasyncd.c;h=7ac07d0d47b91b90e4c40dc16216e50b5876d0af;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=f09a794f248e33a4b8ad192acbf957aec2dd399b;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git 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);