mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 03:08:51 +03:00
Use list_remove_head() where possible.
... instead of list_head() + list_remove(). On FreeBSD the list functions are not inlined, so in addition to more compact code this also saves another function call. Reviewed-by: Brian Atkinson <batkinson@lanl.gov> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Alexander Motin <mav@FreeBSD.org> Sponsored by: iXsystems, Inc. Closes #14955
This commit is contained in:
@@ -3437,10 +3437,8 @@ scan_io_queues_run_one(void *arg)
|
||||
* If we were suspended in the middle of processing,
|
||||
* requeue any unfinished sios and exit.
|
||||
*/
|
||||
while ((sio = list_head(&sio_list)) != NULL) {
|
||||
list_remove(&sio_list, sio);
|
||||
while ((sio = list_remove_head(&sio_list)) != NULL)
|
||||
scan_io_queue_insert_impl(queue, sio);
|
||||
}
|
||||
|
||||
queue->q_zio = NULL;
|
||||
mutex_exit(q_lock);
|
||||
|
||||
Reference in New Issue
Block a user