rxrpc: make the users of rxrpc_kernel_send_data() set kvec-backed msg_iter properly
Use iov_iter_kvec() there, get rid of set_fs() games - now that rxrpc_send_data() uses iov_iter primitives, it'll handle ITER_KVEC just fine. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
		
					parent
					
						
							
								af2b040e47
							
						
					
				
			
			
				commit
				
					
						2e90b1c45e
					
				
			
		
					 2 changed files with 7 additions and 10 deletions
				
			
		|  | @ -232,10 +232,7 @@ int rxrpc_kernel_send_data(struct rxrpc_call *call, struct msghdr *msg, | |||
| 		   call->state != RXRPC_CALL_SERVER_SEND_REPLY) { | ||||
| 		ret = -EPROTO; /* request phase complete for this client call */ | ||||
| 	} else { | ||||
| 		mm_segment_t oldfs = get_fs(); | ||||
| 		set_fs(KERNEL_DS); | ||||
| 		ret = rxrpc_send_data(NULL, call->socket, call, msg, len); | ||||
| 		set_fs(oldfs); | ||||
| 	} | ||||
| 
 | ||||
| 	release_sock(&call->socket->sk); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Al Viro
				Al Viro