]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: remove xfs_cancel_ioend
authorDave Chinner <dchinner@redhat.com>
Mon, 15 Feb 2016 06:21:12 +0000 (17:21 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 15 Feb 2016 06:21:12 +0000 (17:21 +1100)
commit711c90b6e95eee0f79b02508d8d4da073b16396d
tree1f0ca744ee28a36980955f53e008e529a4e8e7a3
parent7c6548fcedc466b7eb7f3b581324f49d52367b35
xfs: remove xfs_cancel_ioend

We currently have code to cancel ioends being built because we
change bufferhead state as we build the ioend. On error, this needs
to be unwound and so we have cancelling code that walks the buffers
on the ioend chain and undoes these state changes.

However, the IO submission path already handles state changes for
buffers when a submission error occurs, so we don't really need a
separate cancel function to do this - we can simply submit the
ioend chain with the specific error and it will be cancelled rather
than submitted.

Hence we can remove the explicit cancel code and just rely on
submission to deal with the error correctly.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_aops.c