# HG changeset patch # User Olaf Wintermann # Date 1515601555 -3600 # Node ID 8041ac363f26e5cf4bb90fe910ff57db0a4949d8 # Parent b4d7ccf4e06d299ef2e24d98220856450cd4d055 fixes aio error handling diff -r b4d7ccf4e06d -r 8041ac363f26 src/server/safs/service.c --- a/src/server/safs/service.c Wed Jan 10 15:46:17 2018 +0100 +++ b/src/server/safs/service.c Wed Jan 10 17:25:55 2018 +0100 @@ -345,6 +345,7 @@ asr->aio->offset += asr->aio->result; size_t length = asr->end - asr->offset; asr->aio->nbytes = AIO_BUF_SIZE < length ? AIO_BUF_SIZE : length; + asr->read_inprogress = TRUE; if(system_aio_read(asr->aio)) { asr->error = TRUE; return 1; @@ -482,6 +483,7 @@ asr->aio = aio; asr->wpos = 0; + asr->read_inprogress = TRUE; if(system_aio_read(aio)) { send_range_cleanup(asr); return REQ_ABORTED;