splice: fix fallback from copy vmsplice to nothing
authorJens Axboe <jens.axboe@oracle.com>
Tue, 16 Oct 2007 07:44:47 +0000 (09:44 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 16 Oct 2007 07:44:47 +0000 (09:44 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
engines/splice.c

index 868f6e0..5a288b5 100644 (file)
@@ -130,6 +130,10 @@ restart:
                                        munmap(map, mmap_len);
                                        goto restart;
                                }
+                               if (errno == EBADF) {
+                                       ret = -EBADF;
+                                       break;
+                               }
                                td_verror(td, errno, "vmsplice");
                                break;
                        } else if (!ret) {