subr_sleepqueue.c (3ff65f71cb34a10c4e29b3c17b1ed35c40d7617c) | subr_sleepqueue.c (1c29da02798d968eb874b86221333a56393a94c3) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2004 John Baldwin <jhb@FreeBSD.org> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 1231 unchanged lines hidden (view full) --- 1240 stack_idx = 0; 1241 /* Save thread info */ 1242 TAILQ_FOREACH_SAFE(td, &sq->sq_blocked[queue], td_slpq, 1243 td_next) { 1244 if (stack_idx >= stacks_to_allocate) 1245 goto loop_end; 1246 1247 /* Note the td_lock is equal to the sleepq_lock here. */ | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2004 John Baldwin <jhb@FreeBSD.org> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 1231 unchanged lines hidden (view full) --- 1240 stack_idx = 0; 1241 /* Save thread info */ 1242 TAILQ_FOREACH_SAFE(td, &sq->sq_blocked[queue], td_slpq, 1243 td_next) { 1244 if (stack_idx >= stacks_to_allocate) 1245 goto loop_end; 1246 1247 /* Note the td_lock is equal to the sleepq_lock here. */ |
1248 stack_save_td(st[stack_idx], td); | 1248 (void)stack_save_td(st[stack_idx], td); |
1249 1250 sbuf_printf(td_infos[stack_idx], "%d: %s %p", 1251 td->td_tid, td->td_name, td); 1252 1253 ++stack_idx; 1254 } 1255 1256 finished = true; --- 247 unchanged lines hidden --- | 1249 1250 sbuf_printf(td_infos[stack_idx], "%d: %s %p", 1251 td->td_tid, td->td_name, td); 1252 1253 ++stack_idx; 1254 } 1255 1256 finished = true; --- 247 unchanged lines hidden --- |