mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	cifs: fix rmmod regression in cifs.ko caused by force_sig changes
Fixes: 72abe3bcf0 ("signal/cifs: Fix cifs_put_tcp_session to call send_sig instead of force_sig")
The global change from force_sig caused module unloading of cifs.ko
to fail (since the cifsd process could not be killed, "rmmod cifs"
now would always fail)
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
CC: Eric W. Biederman <ebiederm@xmission.com>
			
			
This commit is contained in:
		
							parent
							
								
									e21a712a96
								
							
						
					
					
						commit
						247bc9470b
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -1113,6 +1113,7 @@ cifs_demultiplex_thread(void *p)
 | 
				
			||||||
		mempool_resize(cifs_req_poolp, length + cifs_min_rcv);
 | 
							mempool_resize(cifs_req_poolp, length + cifs_min_rcv);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	set_freezable();
 | 
						set_freezable();
 | 
				
			||||||
 | 
						allow_signal(SIGKILL);
 | 
				
			||||||
	while (server->tcpStatus != CifsExiting) {
 | 
						while (server->tcpStatus != CifsExiting) {
 | 
				
			||||||
		if (try_to_freeze())
 | 
							if (try_to_freeze())
 | 
				
			||||||
			continue;
 | 
								continue;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue