block: fix partition use-after-free and optimization
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | block: fix use-after-free on cached last_lookup partitionblock/ block/ block/ +1 more | +15 | 3 replies | |
| 2/4 | block: only define 'nr_sects_seq' in hd_part for 32bit SMPblock/ block/ include/ | +11 | 0 replies | |
| 3/4 | block: re-organize fields of 'struct hd_part'include/ | +8 | 0 replies | |
| 4/4 | block: don't hold part0's refcount in IO pathblock/ block/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] block: fix partition use-after-free and optimization
Hi,
The 1st patch fixes one use-after-free on cached last_lookup partition.
The other 3 patches optimizes partition uses in IO path.
Ming Lei (4):
block: fix use-after-free on cached last_lookup partition
block: only define 'nr_sects_seq' in hd_part for 32bit SMP
block: re-organize fields of 'struct hd_part'
block: don't hold part0's refcount in IO path
block/blk-core.c | 15 ++------------- block/genhd.c | 7 +++++-- block/partition-generic.c | 12 ++++++++++-- include/linux/genhd.h | 25 ++++++++++++++++++------- 4 files changed, 35 insertions(+), 24 deletions(-)
Cc Yufen Yu <[email protected]>
Cc Christoph Hellwig <[email protected]>
Cc Hou Tao <[email protected]>
Signature · 1 line
2.20.1