Change a couple of M_WAITOKs used in M_PREPEND() to M_TRYWAITs, which

is what they should be. As the returned mbuf is already checked for
failure of M_PREPEND even in the wait case, nothing more to be done
here.
This commit is contained in:
Bosko Milekic 2001-04-05 04:20:48 +00:00
parent 22a847c32e
commit 406dd7d1d4

@ -299,7 +299,7 @@ natm_usr_send(struct socket *so, int flags, struct mbuf *m,
* send the data. we must put an atm_pseudohdr on first * send the data. we must put an atm_pseudohdr on first
*/ */
M_PREPEND(m, sizeof(*aph), M_WAITOK); M_PREPEND(m, sizeof(*aph), M_TRYWAIT);
if (m == NULL) { if (m == NULL) {
error = ENOBUFS; error = ENOBUFS;
goto out; goto out;
@ -598,7 +598,7 @@ struct proc *p;
* send the data. we must put an atm_pseudohdr on first * send the data. we must put an atm_pseudohdr on first
*/ */
M_PREPEND(m, sizeof(*aph), M_WAITOK); M_PREPEND(m, sizeof(*aph), M_TRYWAIT);
if (m == NULL) { if (m == NULL) {
error = ENOBUFS; error = ENOBUFS;
break; break;