On 1/27/23 17:18, Damien Le Moal wrote:
On 1/28/23 09:59, Bart Van Assche wrote:+ WARN_ONCE(len > dev->max_segment_size, "%u > %u\n", len, + dev->max_segment_size);Shouldn't this be an EIO return as this is not supposed to happen ?
Hmm ... the above WARN_ONCE() statement is intended as a precondition check. This statement is intended as a help for developers to check that the code below works fine. I'm not sure how returning EIO here would help?
Thanks Bart.