=== _ruben_ is now known as _ruben === himcesjf_ is now known as him-cesjf [10:45] Hi! I'm trying to test hybrid polling. Using ubuntu 16.04 with 4.10.0-42-generic kernel (from linux-generic-hwe-16.04 package). When i do echo 0 > /sys/block/sdc/queue/io_poll_delay then i get error: -bash: echo: write error: Invalid argument. I'm logged in as root, so it is not user permissions problem. Did i miss something? [10:48] I'm using blk-mq for this disk. scsi_mod.use_blk_mq=y while booting and scheduler for this disk is 'none', which means that scsi_mq is active [11:26] Any suggestions?:( i really don't know where to look at now [11:26] alexzzz, looking [11:26] juergh: Thak you!:) [11:26] if (!q->request_fn && !q->mq_ops) [11:26] return -EINVAL; [11:26] that's what you're hitting [11:28] oh no wait. that's the one: [11:28] if (!q->mq_ops || !q->mq_ops->poll) [11:28] return -EINVAL; [11:35] alexzzz, you need to write 0 to /sys/block/sdc/queue/io_poll first to enable polling (according to the docs). [11:35] maeh, make that 'write 1' :-) [11:35] Hm, but it is 1 [11:35] :-( [11:35] it is a default behavior [11:36] and i can't turn polling off, echo 0 to io_poll fails with same error invalid argument [11:40] alexzzz: any apparmor denials or other clues in the system logs? [11:44] TJ-: no, nothing in logs [12:05] alexzzz, The low-level driver needs to support IO polling. Currently, only NVME supports it so you're out of luck with a SCSI disk. [12:05] $ find drivers/ -type f -name '*.c' | xargs grep -A20 '^static.* struct blk_mq_ops' | grep '\.poll' [12:05] drivers/nvme/host/rdma.c- .poll = nvme_rdma_poll, [12:05] drivers/nvme/host/pci.c- .poll = nvme_poll, [12:05] drivers/nvme/host/fc.c- .poll = nvme_fc_poll, [12:06] Oh [12:07] juergh: Thank you very much! [12:07] alexzzz, np [12:07] i will try it on NVMe some time later === ghostcube_ is now known as ghostcube