]> git.baikalelectronics.ru Git - kernel.git/commit
aio: be defensive to ensure request batching is non-zero instead of BUG_ON()
authorBenjamin LaHaise <bcrl@kvack.org>
Wed, 31 Jul 2013 14:34:18 +0000 (10:34 -0400)
committerBenjamin LaHaise <bcrl@kvack.org>
Wed, 31 Jul 2013 14:34:18 +0000 (10:34 -0400)
commitcfd5abcccfb796cfd841c13bd5a9d830c5a423ff
tree9750b6a7f37d340227399ff282a6aefb6892cd98
parent32bf152f1acc99f9ba9e7d004430b3b5fa41a0c6
aio: be defensive to ensure request batching is non-zero instead of BUG_ON()

In the event that an overflow/underflow occurs while calculating req_batch,
clamp the minimum at 1 request instead of doing a BUG_ON().

Signed-off-by: Benjamin LaHaise <bcrl@kvack.org>
fs/aio.c