On 8/31/21 6:03 PM, Jens Axboe wrote:
On 8/31/21 9:49 AM, Pavel Begunkov wrote:
quoted
Add a whole bunch of tests for when linked requests fail early during
submission.
Applied, but remember to check write(2) returns:
submit-link-fail.c: In function ‘test_underprep_fail’:
submit-link-fail.c:80:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
80 | write(fds[1], buffer, sizeof(buffer));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My bad. Interesting why my gcc 11 doesn't complain.
--
Pavel Begunkov