Commits
Den Lunev authored and Kirill Tkhai committed 16194610e0f
ploop: add separate tree for existing discard requests Right now ploop code use own code for requests merging. This code uses separate rb trees for READ and WRITE requests. There are also, unfortunately, DISCARD requests. They are submited with a WRITE flag set. Thus there is a possibility that they will be merged with writes and this leads to fatal consequences. If the WRITE is ahead the DISCARD, we get EINVAL from FUSE. If DISCARD is ahead the WRITE we get bugcheck here kernel BUG at fs/fuse/file.c:3522 https://pmc.acronis.com/browse/VSTOR-16344 Signed-off-by: Denis V. Lunev <den@openvz.org> Reviewed-by: Pavel Butsykin <pbutsykin@virtuozzo.com> Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>