]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore/KernelDevice: fix RW_IO_MAX constant 29577/head
authorSage Weil <sage@redhat.com>
Fri, 9 Aug 2019 14:21:17 +0000 (09:21 -0500)
committerSage Weil <sage@redhat.com>
Thu, 15 Aug 2019 01:43:43 +0000 (20:43 -0500)
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>
src/os/bluestore/KernelDevice.h

index 99dfb761837a6f8438788eb1027dbcc403aee258..5cf59ed1986a3591e997eef3e418a6aa86d75b8f 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 {