mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 22:52:19 +02:00
virtio_fs: remove duplicate check if queue is broken
virtqueue_enable_cb() will call virtqueue_poll() which will check if queue is broken at beginning, so remove the virtqueue_is_broken() call Signed-off-by: Li RongQing <lirongqing@baidu.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
This commit is contained in:
parent
253e524371
commit
f9c2913739
|
|
@ -401,7 +401,7 @@ static void virtio_fs_hiprio_done_work(struct work_struct *work)
|
|||
kfree(req);
|
||||
dec_in_flight_req(fsvq);
|
||||
}
|
||||
} while (!virtqueue_enable_cb(vq) && likely(!virtqueue_is_broken(vq)));
|
||||
} while (!virtqueue_enable_cb(vq));
|
||||
spin_unlock(&fsvq->lock);
|
||||
}
|
||||
|
||||
|
|
@ -683,7 +683,7 @@ static void virtio_fs_requests_done_work(struct work_struct *work)
|
|||
list_move_tail(&req->list, &reqs);
|
||||
spin_unlock(&fpq->lock);
|
||||
}
|
||||
} while (!virtqueue_enable_cb(vq) && likely(!virtqueue_is_broken(vq)));
|
||||
} while (!virtqueue_enable_cb(vq));
|
||||
spin_unlock(&fsvq->lock);
|
||||
|
||||
/* End requests */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user