Skip to content

RFC Support for high-priority block device flag

Jon Derrick linux-block linux-fsdevel linux-nvme 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest3 patches 3 repliesIn review
  2. v1 RFC2 patches 5 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3block: allow other bd i_node flags when DAX is disabledfs/block_dev.c+1 -10 replies
2/3block: add helper for setting and clearing S_DAX on inodefs/block_dev.c+16 -42 replies
3/3block: Introduce S_HIPRI inode flagblock/ioctl.c fs/block_dev.c include/linux/fs.h +1 more+50 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [RFCv2 0/3] Support for high-priority block device flag

V2: Added inode locking as appropriate when setting i_flags

This set intends to recreate block polling (now HIPRI) behavior that was present in 4.5, where all IO on a queue could be selected to use block polling behavior. The set allows a block device file to subscribe to block polling on a block device granularity, rather than a per-queue granularity.

There have been few-to-no arguments in support of the per-queue, always-poll functionality that 4.5 offered, moreso in favor of enabling polling on the entire block device (or indivual IOs as 4.6 offers).

I've been made aware that streams and ioprio may supercede this functionality in the future, but I'm hoping this is an acceptable stopgap in the meantime.

This set applies against 4.6-rc7 as well as Jens' for-4.7/core

(I've also been made aware that it may not apply cleanly to 4.7 after several DAX changes)

Jon Derrick (3):
block: allow other bd i_node flags when DAX is disabled
block: add helper for setting and clearing S_DAX on inode
block: Introduce S_HIPRI inode flag

 block/ioctl.c           | 43 +++++++++++++++++++++++++++++++++++++++++++
 fs/block_dev.c          | 23 +++++++++++++++++++----
 include/linux/fs.h      |  2 ++
 include/uapi/linux/fs.h |  2 ++
 4 files changed, 66 insertions(+), 4 deletions(-)
Signature · 1 line
1.8.3.1