Created attachment 280731 [details]
prevent failed readhead from spamming syslog
Probably due to this patch:
When underlying device driver fails a REQ_RAHEAD the btrfs_end_io() function generates a syslog message. This patch fixes it, but maybe a btrfs developer has a better method?
Thanks for pointing it out, I've never seen the patch that added the REQ_RAHEAD bit as it was not CCed to the mailinglist. Readahead could fail for various reasons but should not be considered a hard error, unlike proper reads.
The proposed fix looks correct to me.
Patch submitted https://patchwork.kernel.org/patch/10843055/ , queued for some 5.1-rc. Thanks for the report and fix.