separate operations from flags in the bio/request structs
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest35 patches 2 repliesIn review
- v335 patches 1 replySuperseded
- v235 patches 18 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 RFC | 32 patches | 11 replies | Superseded |
Changes in v4 from the cover letter
1. Rebased to current linux-next tree.
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/35 | block/fs/drivers: remove rw argument from submit_bioblock/ block/ block/ +49 more | +212 | 0 replies | |
| 2/35 | block: add REQ_OP definitions and bi_op/op fieldsblock/ include/ include/ +1 more | +66 | 0 replies | |
| 3/35 | block, fs, mm, drivers: set bi_op to REQ_OPblock/ block/ block/ +14 more | +41 | 0 replies | |
| 4/35 | fs: have submit_bh users pass in op and flags separatelydrivers/ fs/ fs/ +27 more | +103 | 0 replies | |
| 5/35 | fs: have ll_rw_block users pass in op and flags separatelyfs/ fs/ fs/ +18 more | +40 | 0 replies | |
| 6/35 | direct-io: set bi_op to REQ_OPfs/ fs/ include/ | +27 | 0 replies | |
| 7/35 | btrfs: have submit_one_bio users setup bio bi_opfs/ | +45 | 0 replies | |
| 8/35 | btrfs: set bi_op tp REQ_OPfs/ fs/ fs/ +4 more | +50 | 0 replies | |
| 9/35 | btrfs: update __btrfs_map_block for bi_op transitionfs/ fs/ fs/ +1 more | +34 | 0 replies | |
| 10/35 | btrfs: don't pass rq_flag_bits if there is a biofs/ fs/ fs/ +6 more | +53 | 0 replies | |
| 11/35 | f2fs: set bi_op to REQ_OPfs/ fs/ fs/ +6 more | +74 | 0 replies | |
| 12/35 | gfs2: set bi_op to REQ_OPfs/ fs/ fs/ +2 more | +18 | 0 replies | |
| 13/35 | xfs: set bi_op to REQ_OPfs/ fs/ | +17 | 0 replies | |
| 14/35 | hfsplus: set bi_op to REQ_OPfs/ fs/ fs/ +1 more | +17 | 0 replies | |
| 15/35 | mpage: set bi_op to REQ_OPfs/ | +21 | 0 replies | |
| 16/35 | nilfs: set bi_op to REQ_OPfs/ | +10 | 0 replies | |
| 17/35 | ocfs2: set bi_op to REQ_OPfs/ | +7 | 0 replies | |
| 18/35 | pm: set bi_op to REQ_OPkernel/ | +19 | 0 replies | |
| 19/35 | dm: set bi_op to REQ_OPdrivers/ drivers/ drivers/ +8 more | +82 | 0 replies | |
| 20/35 | dm: pass dm stats data dir instead of bi_rwdrivers/ drivers/ | +16 | 0 replies | |
| 21/35 | bcache: set bi_op to REQ_OPdrivers/ drivers/ drivers/ +5 more | +32 | 0 replies | |
| 22/35 | drbd: set bi_op to REQ_OPdrivers/ drivers/ drivers/ +3 more | +51 | 0 replies | |
| 23/35 | md/raid: set bi_op to REQ_OPdrivers/ drivers/ drivers/ +5 more | +101 | 0 replies | |
| 24/35 | xen: set bi_op to REQ_OPdrivers/ | +17 | 0 replies | |
| 25/35 | target: set bi_op to REQ_OPdrivers/ drivers/ | +24 | 0 replies | |
| 26/35 | block: set op to REQ_OPblock/ block/ block/ +6 more | +120 | 0 replies | |
| 27/35 | drivers: set request op to REQ_OPdrivers/ drivers/ drivers/ +10 more | +44 | 0 replies | |
| 28/35 | blktrace: get op from req->op/bio->bi_opinclude/ include/ include/ +1 more | +57 | 0 replies | |
| 29/35 | ide cd: do not set REQ_WRITE on requests.drivers/ | +0 | 0 replies | |
| 30/35 | block, fs, drivers: do not test bi_rw for REQ_OPsblock/ block/ block/ +27 more | +100 | 0 replies | |
| 31/35 | block, fs: remove old REQ definitions.include/ include/ include/ | +17 | 0 replies | |
| 32/35 | block: shrink bi_rw and bi_opblock/ drivers/ drivers/ +5 more | +18 | 0 replies | |
| 33/35 | block, drivers: add REQ_OP_FLUSH operationDocumentation/ arch/ block/ +17 more | +37 | 0 replies | |
| 34/35 | block: add QUEUE_FLAGs for flush and fuaarch/ block/ block/ +22 more | +108 | 0 replies | |
| 35/35 | block, drivers, fs: rename REQ_FLUSH to REQ_PREFLUSHDocumentation/ Documentation/ block/ +36 more | +107 | 0 replies |
Reviews trailers per patch
3 of 35 patches have a Reviewed-by or Acked-by.
| Patch | Bart Van Assche | Christoph Hellwig | Dave Chinner | Nicholas Bellinger |
|---|---|---|---|---|
| 1/35 | R-b | R-b | ||
| 2/35 | ||||
| 3/35 | ||||
| 4/35 | ||||
| 5/35 | ||||
| 6/35 | ||||
| 7/35 | ||||
| 8/35 | ||||
| 9/35 | ||||
| 10/35 | ||||
| 11/35 | ||||
| 12/35 | ||||
| 13/35 | A-b | |||
| 14/35 | ||||
| 15/35 | ||||
| 16/35 | ||||
| 17/35 | ||||
| 18/35 | ||||
| 19/35 | ||||
| 20/35 | ||||
| 21/35 | ||||
| 22/35 | ||||
| 23/35 | ||||
| 24/35 | ||||
| 25/35 | A-b | |||
| 26/35 | ||||
| 27/35 | ||||
| 28/35 | ||||
| 29/35 | ||||
| 30/35 | ||||
| 31/35 | ||||
| 32/35 | ||||
| 33/35 | ||||
| 34/35 | ||||
| 35/35 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [PATCH 00/35 v4] separate operations from flags in the bio/request structs
The following patches begin to cleanup the request->cmd_flags and bio->bi_rw mess. We currently use cmd_flags to specify the operation, attributes and state of the request. For bi_rw we use it for similar info and also the priority but then also have another bi_flags field for state. At some point, we abused them so much we just made cmd_flags 64 bits, so we could add more.
The following patches seperate the operation (read, write discard, flush, etc) from cmd_flags/bi_rw.
This patchset was made against linux-next from today Feb 24 2016 (git tag next-20160224).
I put a git tree here:
https://github.com/mikechristie/linux-kernel.git
v4:
1. Rebased to current linux-next tree.
v3:
1. Used "=" instead of "|=" to setup bio bi_rw.
2. Removed __get_request cmd_flags compat code.
3. Merged initial dm related changes requested by Mike Snitzer.
4. Fixed ubd kbuild errors in flush related patches.
5. Fix 80 char col issues in several patches.
6. Fix issue with one of the btrfs patches where it looks like I reverted a patch when trying to fix a merge error.
v2
1. Dropped arguments from submit_bio, and had callers setup bio.
2. Add REQ_OP_FLUSH for request_fn users and renamed REQ_FLUSH to REQ_PREFLUSH for make_request_fn users.
3. Dropped bio/rq_data_dir functions, and added a op_is_write function instead.