Well, if that's the issue, then just add a printk to that
'blkdev_issue_flush()', and now you have that informational message in
_one_ place, instead of havign each filesystem having to do it over and
over again.
If it's just informational, then again - why should the filesystem care?
Returning an error to the caller is never the right thing to do. The
caller can't do anything sane about it.
If you argue that the admin wants to know, then sure, make that
if (bio_flagged(bio, BIO_EOPNOTSUPP))
- ret = -EOPNOTSUPP;
+ set_queue_noflush(q);
"set_queue_noflush()" function print a warning message when it sets the
bit.
Problem solved.
I cannot fathom why you can _possibly_ think that this is something that
can and must be done something about in the caller. When the caller
obviously has no real option except to ignore the error _anyway_.
That was always my point. Returning an error is INSANE, because ther is no
valid thing that the caller can possibly do.
If you want it logged, fine. But THAT DOES NOT CHANGE ANYTHING. It would
still be wrong to return the error, since the caller _still_ can't do
anything about it.
Linus
--