Re: [PATCH] cifs: allow syscalls to be restarted in __smb_send_rqst()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Paulo Alcantara <pc@xxxxxx> writes:
> diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c
> index e27e255d40dd..55853b9ed13d 100644
> --- a/fs/cifs/transport.c
> +++ b/fs/cifs/transport.c
> @@ -338,10 +338,8 @@ __smb_send_rqst(struct TCP_Server_Info *server, int num_rqst,
>  	if (ssocket == NULL)
>  		return -EAGAIN;
>  
> -	if (signal_pending(current)) {
> -		cifs_dbg(FYI, "signal is pending before sending any data\n");
> -		return -EINTR;
> -	}
> +	if (signal_pending(current))
> +		return -ERESTARTSYS;

Can we keep the debug message call?

Cheers,
-- 
Aurélien Aptel / SUSE Labs Samba Team
GPG: 1839 CB5F 9F5B FB9B AA97  8C99 03C8 A49B 521B D5D3
SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg, DE
GF: Felix Imendörffer, Mary Higgins, Sri Rasiah HRB 247165 (AG München)





[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux