Gleb Smirnoff
6bc27f086a
Generalize resources freeing in sendfile with different scenarios.
...
Now we execute sendfile_iodone() in all possible cases, which
guarantees that vm_object_pip_wakeup() is called and sfio structure
is freed.
At the beginning of sendfile initialize sfio->m to NULL, that would
indicate that the mbuf chain either doesn't exist, or belongs to the
syscall (not to I/O completion). Fill sfio->m only at a point when
we are positive that there are I/Os ongoing and before releasing
syscall's reference on sfio.
In sendfile_iodone() perform vm_object_pip_wakeup() once last
reference is released, then check for sfio->m. NULL pointer
indicates that we need only to free the memory.
Reviewed by: jtl, gallatin
2020-02-25 19:29:05 +00:00
..
2019-08-04 19:28:10 +00:00
2020-02-12 18:59:00 +00:00
2019-10-29 17:28:25 +00:00
2020-01-03 22:29:58 +00:00
2020-01-30 20:05:05 +00:00
2020-02-09 12:10:37 +00:00
2020-01-30 20:05:05 +00:00
2020-02-20 16:58:57 +00:00
2020-01-03 22:29:58 +00:00
2020-01-30 20:05:05 +00:00
2019-12-24 16:19:33 +00:00
2020-01-30 20:05:05 +00:00
2020-02-23 03:32:16 +00:00
2020-01-29 03:15:34 +00:00
2019-12-13 09:32:16 +00:00
2020-01-03 22:29:58 +00:00
2020-02-15 01:28:55 +00:00
2019-10-14 13:04:04 +00:00
2019-09-12 14:34:46 +00:00
2020-02-15 01:30:13 +00:00
2020-02-20 15:34:02 +00:00
2020-02-03 17:35:11 +00:00
2019-12-13 19:26:04 +00:00
2020-02-09 11:53:12 +00:00
2020-01-30 20:05:05 +00:00
2020-02-10 20:23:08 +00:00
2020-02-13 22:22:15 +00:00
2020-01-30 20:05:05 +00:00
2020-01-30 20:05:05 +00:00
2020-01-12 06:07:54 +00:00
2020-02-03 22:26:00 +00:00
2020-02-23 03:32:16 +00:00
2020-02-14 11:21:28 +00:00
2020-01-30 20:05:05 +00:00
2019-08-21 23:43:58 +00:00
2020-02-23 03:32:04 +00:00
2020-02-04 22:40:23 +00:00
2020-01-30 20:05:05 +00:00
2020-01-30 20:05:05 +00:00
2020-01-12 06:07:54 +00:00
2020-01-30 20:05:05 +00:00
2020-01-30 20:05:05 +00:00
2020-02-13 22:22:15 +00:00
2020-02-09 12:29:51 +00:00
2019-09-03 18:56:25 +00:00
2020-01-14 02:14:02 +00:00
2019-08-28 16:18:23 +00:00
2019-09-15 02:59:53 +00:00
2020-02-15 18:48:38 +00:00
2020-01-30 20:05:05 +00:00
2020-02-12 11:17:18 +00:00
2020-01-05 12:48:19 +00:00
2020-02-25 19:29:05 +00:00
2019-12-02 22:38:25 +00:00
2020-02-23 03:32:16 +00:00
2020-02-23 03:32:16 +00:00
2020-01-30 20:05:05 +00:00
2020-01-05 12:48:19 +00:00
2020-02-16 18:20:09 +00:00
2019-12-11 15:52:29 +00:00
2020-02-10 20:53:59 +00:00
2020-02-14 23:27:45 +00:00
2020-02-04 02:42:54 +00:00
2020-02-22 20:43:04 +00:00
2020-02-04 21:02:08 +00:00
2019-12-13 21:03:12 +00:00
2020-01-30 20:05:05 +00:00
2020-01-30 20:05:05 +00:00
2019-06-19 15:36:02 +00:00
2020-01-30 20:05:05 +00:00
2020-02-23 03:32:16 +00:00
2019-06-25 16:39:25 +00:00
2020-02-12 19:06:34 +00:00
2019-09-30 20:58:29 +00:00
2020-01-30 20:05:05 +00:00
2020-02-03 22:49:05 +00:00
2019-05-13 23:37:44 +00:00
2020-01-30 20:05:05 +00:00
2020-01-03 18:29:20 +00:00
2020-01-30 20:05:05 +00:00
2019-04-18 22:52:12 +00:00
2020-01-30 20:05:05 +00:00
2019-06-29 00:48:33 +00:00
2020-01-30 20:05:05 +00:00
2020-02-15 01:30:27 +00:00
2020-01-30 20:05:05 +00:00
2020-02-20 23:53:48 +00:00
2020-02-14 23:18:03 +00:00
2020-01-30 20:05:05 +00:00
2019-12-20 03:40:53 +00:00
2019-12-30 03:13:38 +00:00
2020-02-12 11:10:10 +00:00
2019-05-21 20:38:48 +00:00
2020-01-30 20:05:05 +00:00
2020-01-30 20:05:05 +00:00
2019-11-28 08:47:36 +00:00
2020-02-11 18:48:07 +00:00
2020-01-30 20:05:05 +00:00
2020-01-30 20:05:05 +00:00
2020-01-31 15:43:33 +00:00
2020-01-05 12:48:19 +00:00
2020-02-03 17:35:11 +00:00
2020-02-12 11:11:22 +00:00
2019-04-06 21:56:24 +00:00
2019-05-20 00:38:23 +00:00
2020-01-12 06:07:54 +00:00
2020-01-30 20:05:05 +00:00
2019-08-16 19:46:22 +00:00
2019-06-29 00:48:33 +00:00
2020-01-31 15:43:33 +00:00
2020-02-12 11:16:55 +00:00
2020-02-22 03:44:10 +00:00
2019-09-25 18:26:31 +00:00
2020-01-30 20:05:05 +00:00
2020-02-20 15:34:02 +00:00
2020-02-11 18:48:07 +00:00
2019-09-26 07:19:26 +00:00
2020-02-20 21:25:12 +00:00
2019-12-15 21:26:50 +00:00
2020-02-03 17:35:11 +00:00
2020-01-30 20:05:05 +00:00
2020-02-19 08:17:27 +00:00
2020-02-03 17:35:11 +00:00
2020-02-15 01:30:27 +00:00
2020-02-03 22:27:55 +00:00
2020-01-12 23:52:16 +00:00
2020-01-30 20:05:05 +00:00
2019-11-25 18:33:21 +00:00
2020-01-30 20:05:05 +00:00
2020-02-20 16:58:57 +00:00
2020-02-20 16:58:19 +00:00
2020-02-20 16:58:57 +00:00
2019-05-04 19:05:30 +00:00
2020-01-30 20:05:05 +00:00
2020-02-15 23:19:23 +00:00
2020-01-30 20:05:05 +00:00
2020-01-31 15:43:33 +00:00
2019-11-29 03:56:01 +00:00
2019-05-20 00:38:23 +00:00
2020-02-03 22:27:55 +00:00
2020-01-15 03:34:21 +00:00
2020-02-25 19:26:40 +00:00
2019-11-06 22:40:19 +00:00
2020-01-30 20:05:05 +00:00
2020-01-27 22:36:54 +00:00
2020-01-19 23:47:32 +00:00
2020-01-02 01:23:43 +00:00
2020-02-25 19:26:40 +00:00
2019-08-11 19:16:07 +00:00
2020-01-30 20:05:05 +00:00
2020-02-15 01:28:42 +00:00
2020-01-03 22:29:58 +00:00
2020-02-03 14:25:32 +00:00
2020-02-20 16:58:19 +00:00
2020-01-30 20:05:05 +00:00
2020-02-14 11:56:50 +00:00
2020-02-15 01:28:42 +00:00
2020-01-11 22:56:20 +00:00
2020-01-30 20:05:05 +00:00
2020-02-21 01:44:31 +00:00
2020-02-12 11:18:12 +00:00
2020-01-03 22:29:58 +00:00
2020-02-23 03:32:11 +00:00
2020-02-15 01:28:42 +00:00
2020-02-23 03:32:11 +00:00
2020-02-23 03:32:11 +00:00