diff options
| author | Dan McDonald <danmcd@joyent.com> | 2022-02-22 19:50:49 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-22 19:50:49 -0500 |
| commit | bc426cb7eeb7a41ef293093a664028214e5d5168 (patch) | |
| tree | b48bf23a847eee9fa42163ba9a7155924f3c7a32 /usr/src/uts/common/inet/tcp/tcp_bind.c | |
| parent | 263ea1b63c716f2faa665b9fe7952e018d1110c1 (diff) | |
| download | illumos-joyent-bc426cb7eeb7a41ef293093a664028214e5d5168.tar.gz | |
OS-8359 Cleanup (KM_NOSLEEP | KM_NORMALPRI) in illumos-joyent
Reviewed by: Brian Bennett <brian.bennett@joyent.com>
Approved by: Brian Bennett <brian.bennett@joyent.com>
Diffstat (limited to 'usr/src/uts/common/inet/tcp/tcp_bind.c')
| -rw-r--r-- | usr/src/uts/common/inet/tcp/tcp_bind.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr/src/uts/common/inet/tcp/tcp_bind.c b/usr/src/uts/common/inet/tcp/tcp_bind.c index 876e7d48e6..18efac7b74 100644 --- a/usr/src/uts/common/inet/tcp/tcp_bind.c +++ b/usr/src/uts/common/inet/tcp/tcp_bind.c @@ -1006,11 +1006,10 @@ tcp_rg_t * tcp_rg_init(tcp_t *tcp) { tcp_rg_t *rg; - rg = kmem_alloc(sizeof (tcp_rg_t), KM_NOSLEEP|KM_NORMALPRI); + rg = kmem_alloc(sizeof (tcp_rg_t), KM_NOSLEEP_LAZY); if (rg == NULL) return (NULL); - rg->tcprg_members = kmem_zalloc(2 * sizeof (tcp_t *), - KM_NOSLEEP|KM_NORMALPRI); + rg->tcprg_members = kmem_zalloc(2 * sizeof (tcp_t *), KM_NOSLEEP_LAZY); if (rg->tcprg_members == NULL) { kmem_free(rg, sizeof (tcp_rg_t)); return (NULL); @@ -1063,7 +1062,7 @@ tcp_rg_insert(tcp_rg_t *rg, tcp_t *tcp) return (EINVAL); } newmembers = kmem_zalloc(newsize * sizeof (tcp_t *), - KM_NOSLEEP|KM_NORMALPRI); + KM_NOSLEEP_LAZY); if (newmembers == NULL) { mutex_exit(&rg->tcprg_lock); return (ENOMEM); |
