https://github.com/torvalds/linux
Revision 0033dfd92a5646a78025e86f8df4d5b18181ba2c authored by Anton Ivanov on 08 November 2018, 13:07:23 UTC, committed by Jens Axboe on 08 November 2018, 13:16:09 UTC
The SYNC path doesn't initialize io_req->error, which can cause
random errors. Before the conversion to blk-mq, we always
completed requests with BLK_STS_OK status, but now we actually
look at the error field and this issue becomes apparent.

Signed-off-by: Anton Ivanov <anton.ivanov@cambridgegreys.com>

[axboe: fixed up commit message to explain what is actually going on]

Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent f3587d7
Raw File
Tip revision: 0033dfd92a5646a78025e86f8df4d5b18181ba2c authored by Anton Ivanov on 08 November 2018, 13:07:23 UTC
ubd: fix missing initialization of io_req
Tip revision: 0033dfd
prune-kernel
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0

# because I use CONFIG_LOCALVERSION_AUTO, not the same version again and
# again, /boot and /lib/modules/ eventually fill up.
# Dumb script to purge that stuff:

for f in "$@"
do
        if rpm -qf "/lib/modules/$f" >/dev/null; then
                echo "keeping $f (installed from rpm)"
        elif [ $(uname -r) = "$f" ]; then
                echo "keeping $f (running kernel) "
        else
                echo "removing $f"
                rm -f "/boot/initramfs-$f.img" "/boot/System.map-$f"
                rm -f "/boot/vmlinuz-$f"   "/boot/config-$f"
                rm -rf "/lib/modules/$f"
                new-kernel-pkg --remove $f
        fi
done
back to top