ide: fix invalid TRIM range abortion for macio
commit 947858b0 "ide: abort TRIM operation for invalid range" is incorrect for macio; just ide_dma_error() without doing a callback is not enough for that errorpath. Instead, pass -EINVAL to the callback and handle it there (see related motivation for read/write in 58ac3211). It will however catch possible EINVAL from the block layer too. Signed-off-by: NAnton Nefedov <anton.nefedov@virtuozzo.com> Tested-by: NMark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Message-id: 1520010495-58172-1-git-send-email-anton.nefedov@virtuozzo.com Signed-off-by: NJohn Snow <jsnow@redhat.com>
Showing
想要评论请 注册 或 登录