diff options
| author | Ingo Molnar <mingo@kernel.org> | 2015-10-08 11:52:18 +0300 | 
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2015-10-08 11:52:18 +0300 | 
| commit | d3df65c198dc2f1deefb73c8427b04d1bdd1b18d (patch) | |
| tree | f348c249146e2a1bbe2040ebecb0c529f5449b84 /net/unix/af_unix.c | |
| parent | 712df65ccb63da08a484bf57c40b250dfd4103a7 (diff) | |
| parent | 00e6fa5fe15c0eccc95a9d1afc4615e467ee8dc9 (diff) | |
| download | linux-d3df65c198dc2f1deefb73c8427b04d1bdd1b18d.tar.xz | |
Merge branch 'perf/urgent' into perf/core, before pulling new changes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
| -rw-r--r-- | net/unix/af_unix.c | 15 | 
1 files changed, 14 insertions, 1 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 03ee4d359f6a..ef31b40ad550 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c @@ -2179,8 +2179,21 @@ unlock:  			if (UNIXCB(skb).fp)  				scm.fp = scm_fp_dup(UNIXCB(skb).fp); -			sk_peek_offset_fwd(sk, chunk); +			if (skip) { +				sk_peek_offset_fwd(sk, chunk); +				skip -= chunk; +			} +			if (UNIXCB(skb).fp) +				break; + +			last = skb; +			last_len = skb->len; +			unix_state_lock(sk); +			skb = skb_peek_next(skb, &sk->sk_receive_queue); +			if (skb) +				goto again; +			unix_state_unlock(sk);  			break;  		}  	} while (size);  | 
