diff --git a/[refs] b/[refs] index 561a8d7b2650..1b07ed34968f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7901d14144311c930918b1222aae7611284c63eb +refs/heads/master: 6965031d331a642e31278fa1b5bd47f372ffdd5d diff --git a/trunk/fs/splice.c b/trunk/fs/splice.c index ec11c52d646d..8f1dfaecc8f0 100644 --- a/trunk/fs/splice.c +++ b/trunk/fs/splice.c @@ -399,17 +399,7 @@ __generic_file_splice_read(struct file *in, loff_t *ppos, * If the page isn't uptodate, we may need to start io on it */ if (!PageUptodate(page)) { - /* - * If in nonblock mode then dont block on waiting - * for an in-flight io page - */ - if (flags & SPLICE_F_NONBLOCK) { - if (!trylock_page(page)) { - error = -EAGAIN; - break; - } - } else - lock_page(page); + lock_page(page); /* * Page was truncated, or invalidated by the