patch-2.4.0-test8 linux/drivers/char/ftape/lowlevel/ftape-rw.c

Next file: linux/drivers/char/ftape/lowlevel/ftape-tracing.h
Previous file: linux/drivers/char/ftape/lowlevel/ftape-ctl.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test7/linux/drivers/char/ftape/lowlevel/ftape-rw.c linux/drivers/char/ftape/lowlevel/ftape-rw.c
@@ -433,7 +433,7 @@
 			result = ftape_ready_wait(ftape_timeout.pause,&status);
 		}
 	} while (ftape_tape_running
-		 && !(sigtestsetmask(&current->signal, _NEVER_BLOCK)));
+		 && !(sigtestsetmask(&current->pending.signal, _NEVER_BLOCK)));
 #ifndef TESTING
 	ft_location.known = 0;
 #endif
@@ -661,7 +661,7 @@
 		 *  to find a way to skip an EMPTY_SEGMENT. !!! FIXME !!!
 		 */
 		if (ftape_read_id() < 0 || !ft_location.known ||
-		    sigtestsetmask(&current->signal, _DONT_BLOCK)) {
+		    sigtestsetmask(&current->pending.signal, _DONT_BLOCK)) {
 			ft_location.known = 0;
 			if (!ftape_tape_running ||
 			    ++failures > FT_SECTORS_PER_SEGMENT) {
@@ -776,7 +776,7 @@
 		fast_seek(count, 1);
 		logical_forward();
 		if (ftape_read_id() < 0 || !ft_location.known ||
-		    (sigtestsetmask(&current->signal, _DONT_BLOCK))) {
+		    (sigtestsetmask(&current->pending.signal, _DONT_BLOCK))) {
 			if ((!ftape_tape_running && !ft_location.known) ||
 			    ++failures > FT_SECTORS_PER_SEGMENT) {
 				TRACE_ABORT(-EIO, ft_t_err,
@@ -1002,7 +1002,7 @@
 	while (result < 0     &&
 	       retry++ <= 5   &&
 	       !ft_failure &&
-	       !(sigtestsetmask(&current->signal, _DONT_BLOCK))) {
+	       !(sigtestsetmask(&current->pending.signal, _DONT_BLOCK))) {
 		
 		if (retry && start_offset < 5) {
 			start_offset ++;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)