diff options
| author | Minchan Kim <minchan@kernel.org> | 2014-01-30 15:46:00 -0800 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2016-12-11 12:59:18 +0100 |
| commit | 6268c1d7b257f2d0660d7fd09aa714fed016bc02 (patch) | |
| tree | bb9647e7ff0937a444fd3e462a6307c8c8bc9286 /include/linux/vcodec/kernel | |
| parent | 43052051519003e4f6a5a1d2b75236036e50a819 (diff) | |
zram: delay pending free request in read path
Sergey reported we don't need to handle pending free request every I/O
so that this patch removes it in read path while we remain it in write
path.
Let's consider below example.
Swap subsystem ask to zram "A" block free by swap_slot_free_notify but
zram had been pended it without real freeing. Swap subsystem allocates
"A" block for new data but request pended for a long time just handled
and zram blindly free new data on the "A" block. :(
That's why we couldn't remove handle pending free request right before
zram-write.
Signed-off-by: Minchan Kim <minchan@kernel.org>
Reported-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Tested-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Nitin Gupta <ngupta@vflare.org>
Cc: Jerome Marchand <jmarchan@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/vcodec/kernel')
0 files changed, 0 insertions, 0 deletions
