]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore/KernelDevice: fix RW_IO_MAX constant 31397/head
authorSage Weil <sage@redhat.com>
Fri, 9 Aug 2019 14:21:17 +0000 (09:21 -0500)
committerJan Fajerski <jfajerski@suse.com>
Tue, 5 Nov 2019 05:59:07 +0000 (06:59 +0100)
This depends on the page size.  See:

https://github.com/torvalds/linux/blob/6e6d05360b80f196ed07061327f03346b204abea/include/linux/fs.h#L2305

https://github.com/torvalds/linux/blob/30d1d92a888d03681b927c76a35181b4eed7071f/tools/virtio/linux/kernel.h#L23

Fixes 4d33114a40d5ae0d541c36175977ca22789a3b88

Fixes: https://tracker.ceph.com/issues/41188
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 6f7179daa6c17907f8fe38150183008e2d096109)

src/os/bluestore/KernelDevice.h

index ec8cf2f8dc40034e96374b1e9fcd4824ff951150..19b52abd571e354205f7f76a0a203e43aa9f2c2b 100644 (file)
@@ -25,9 +25,7 @@
 #include "ceph_aio.h"
 #include "BlockDevice.h"
 
-#ifndef RW_IO_MAX
-#define RW_IO_MAX 0x7FFFF000
-#endif
+#define RW_IO_MAX (INT_MAX & CEPH_PAGE_MASK)
 
 
 class KernelDevice : public BlockDevice {