diff options
| -rw-r--r-- | mm/filemap.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index b772a33ef640..3f9afded581b 100644 --- a/mm/filemap.c +++ b/mm/filemap.c | |||
| @@ -1791,6 +1791,11 @@ static ssize_t do_generic_file_read(struct file *filp, loff_t *ppos, | |||
| 1791 | 1791 | ||
| 1792 | cond_resched(); | 1792 | cond_resched(); |
| 1793 | find_page: | 1793 | find_page: |
| 1794 | if (fatal_signal_pending(current)) { | ||
| 1795 | error = -EINTR; | ||
| 1796 | goto out; | ||
| 1797 | } | ||
| 1798 | |||
| 1794 | page = find_get_page(mapping, index); | 1799 | page = find_get_page(mapping, index); |
| 1795 | if (!page) { | 1800 | if (!page) { |
| 1796 | page_cache_sync_readahead(mapping, | 1801 | page_cache_sync_readahead(mapping, |
