linux-aio: explain why max batch is checked in laio_io_unplug()
commit99b969fbe105117f5af6060d3afef40ca39cc9c1
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 9 Jun 2022 16:47:12 +0000 (9 17:47 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 15 Jun 2022 15:43:42 +0000 (15 16:43 +0100)
tree86bb7301ad0f534513a53984d0d3c17a1740f453
parentf387cac5af030a58ac5a0dacf64cab5e5a4fe5c7
linux-aio: explain why max batch is checked in laio_io_unplug()

It may not be obvious why laio_io_unplug() checks max batch. I discussed
this with Stefano and have added a comment summarizing the reason.

Cc: Stefano Garzarella <sgarzare@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Message-id: 20220609164712.1539045-3-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/linux-aio.c