seastar icon indicating copy to clipboard operation
seastar copied to clipboard

Available AIO contexts checks wraps around when aio-nr > aio-max-nr

Open fee-mendes opened this issue 2 years ago • 0 comments

It turns out that an user can rightfully have a aio-nr value bigger than aio-max-nr. Such situation happens when aio-max-nr value is modified on the fly and the running system has active AIO contexts, for example:

$ sudo sysctl -w fs.aio-max-nr=0
fs.aio-max-nr = 0
$ sudo sysctl -a | grep aio
fs.aio-max-nr = 0
fs.aio-nr = 102052

Therefore, the corresponding checks must be signed integers. Found after work under #1058

fee-mendes avatar May 13 '22 14:05 fee-mendes