Skip to content

RFC : xfs: 3.0.x stable kernel update

Dave Chinner linux-xfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest99 of 102 patches 17 repliesIn review

99 of 102 patches are in this archive. The cover letter announces 102.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/102xfs: don't serialise adjacent concurrent direct IO appending writesfs/xfs/linux-2.6/xfs_file.c+52 -160 replies
2/102xfs: remove dead ENODEV handling in xfs_destroy_ioendfs/xfs/linux-2.6/xfs_aops.c+0 -110 replies
3/102xfs: defer AIO/DIO completionsfs/xfs/linux-2.6/xfs_aops.c fs/xfs/linux-2.6/xfs_aops.h+9 -130 replies
4/102xfs: reduce ioend latencyfs/xfs/linux-2.6/xfs_aops.c+15 -10 replies
5/102xfs: wait for I/O completion when writing out pages in xfs_setattr_sizefs/xfs/xfs_vnodeops.c+1 -10 replies
6/102xfs: improve ioend error handlingfs/xfs/linux-2.6/xfs_aops.c+17 -100 replies
7/102xfs: Check the return value of xfs_buf_get()fs/xfs/xfs_attr.c fs/xfs/xfs_fsops.c+22 -20 replies
8/102xfs: Check the return value of xfs_trans_get_buf()fs/xfs/quota/xfs_dquot.c fs/xfs/xfs_attr_leaf.c fs/xfs/xfs_btree.c +3 more+28 -120 replies
9/102xfs: dont ignore error code from xfs_bmbt_updatefs/xfs/xfs_bmap.c+3 -20 replies
10/102xfs: fix possible overflow in xfs_ioc_trim()fs/xfs/linux-2.6/xfs_discard.c+10 -100 replies
11/102xfs: XFS_TRANS_SWAPEXT is not a valid flag forfs/xfs/xfs_dfrag.c+1 -10 replies
12/102xfs: Don't allocate new buffers on every call to _xfs_buf_findfs/xfs/linux-2.6/xfs_buf.c+28 -200 replies
13/102xfs: reduce the number of log forces from tail pushingfs/xfs/xfs_trans_ail.c fs/xfs/xfs_trans_priv.h+22 -140 replies
14/102xfs: optimize fsync on directoriesfs/xfs/linux-2.6/xfs_file.c fs/xfs/linux-2.6/xfs_trace.h+29 -10 replies
15/102xfs: clean up buffer allocationfs/xfs/linux-2.6/xfs_buf.c fs/xfs/linux-2.6/xfs_buf.h fs/xfs/xfs_log.c+21 -340 replies
16/102xfs: clean up xfs_ioerror_alertfs/xfs/linux-2.6/xfs_buf.c fs/xfs/linux-2.6/xfs_buf.h fs/xfs/xfs_log.c +6 more+38 -580 replies
17/102xfs: use xfs_ioerror_alert in xfs_buf_iodone_callbacksfs/xfs/xfs_buf_item.c+1 -30 replies
18/102xfs: do not flush data workqueues in xfs_flush_buftargfs/xfs/linux-2.6/xfs_buf.c+1 -100 replies
19/102xfs: add AIL pushing tracepointsfs/xfs/linux-2.6/xfs_trace.h fs/xfs/xfs_trans_ail.c+45 -00 replies
20/102xfs: warn if direct reclaim tries to writeback pagesfs/xfs/linux-2.6/xfs_aops.c+4 -46 replies
21/102xfs: fix force shutdown handling in xfs_end_iofs/xfs/linux-2.6/xfs_aops.c+1 -10 replies
22/102xfs: fix allocation length overflow in xfs_bmapi_write()fs/xfs/xfs_bmap.c+12 -20 replies
23/102xfs: fix the logspace waiting algorithmfs/xfs/linux-2.6/xfs_trace.h fs/xfs/xfs_log.c+177 -1830 replies
24/102xfs: untangle SYNC_WAIT and SYNC_TRYLOCK meanings for xfs_qm_dqflushfs/xfs/quota/xfs_dquot.c fs/xfs/quota/xfs_dquot_item.c fs/xfs/quota/xfs_qm.c+4 -40 replies
25/102xfs: make sure to really flush all dquots in xfs_qm_quotacheckfs/xfs/quota/xfs_qm.c+1 -10 replies
26/102xfs: simplify xfs_qm_detach_gdquotsfs/xfs/quota/xfs_qm.c+5 -180 replies
27/102xfs: mark the xfssyncd workqueue as non-reentrantfs/xfs/linux-2.6/xfs_super.c+5 -50 replies
28/102xfs: make i_flags an unsigned longfs/xfs/xfs_inode.h+1 -10 replies
29/102xfs: remove the i_size field in struct xfs_inodefs/xfs/linux-2.6/xfs_aops.c fs/xfs/linux-2.6/xfs_file.c fs/xfs/linux-2.6/xfs_fs_subr.c +6 more+65 -890 replies
30/102xfs: remove the i_new_size field in struct xfs_inodefs/xfs/linux-2.6/xfs_aops.c fs/xfs/linux-2.6/xfs_file.c fs/xfs/linux-2.6/xfs_trace.h +2 more+30 -910 replies
31/102xfs: always return with the iolock held fromfs/xfs/linux-2.6/xfs_file.c+4 -30 replies
32/102xfs: cleanup xfs_file_aio_writefs/xfs/linux-2.6/xfs_file.c+39 -510 replies
33/102xfs: pass KM_SLEEP flag to kmem_realloc() infs/xfs/xfs_log_recover.c+1 -10 replies
34/102xfs: show uuid when mount fails due to duplicate uuidfs/xfs/xfs_mount.c+1 -10 replies
35/102xfs: xfs_trans_add_item() - don't assign in ASSERT() when compare is intendedfs/xfs/xfs_trans.c+2 -20 replies
36/102xfs: split tail_lsn assignments from log space wakeupsfs/xfs/xfs_log.c fs/xfs/xfs_log.h fs/xfs/xfs_log_priv.h +1 more+45 -800 replies
37/102xfs: do exact log space wakeups in xlog_ungrant_log_spacefs/xfs/xfs_log.c+1 -10 replies
38/102xfs: remove xfs_trans_unlocked_itemfs/xfs/quota/xfs_dquot.c fs/xfs/xfs_iget.c fs/xfs/xfs_inode.h +4 more+4 -970 replies
39/102xfs: cleanup xfs_log_space_wakefs/xfs/xfs_log.c fs/xfs/xfs_log.h fs/xfs/xfs_trans_ail.c+8 -340 replies
40/102xfs: remove log space waitqueuesfs/xfs/xfs_log.c fs/xfs/xfs_log_priv.h+16 -100 replies
41/102xfs: add the xlog_grant_head structurefs/xfs/linux-2.6/xfs_trace.h fs/xfs/xfs_log.c fs/xfs/xfs_log_priv.h +1 more+74 -730 replies
42/102xfs: add xlog_grant_head_initfs/xfs/xfs_log.c+12 -60 replies
43/102xfs: add xlog_grant_head_wake_allfs/xfs/xfs_log.c+14 -100 replies
44/102xfs: share code for grant head waitingfs/xfs/linux-2.6/xfs_trace.h fs/xfs/xfs_log.c+18 -470 replies
45/102xfs: share code for grant head wakeupsfs/xfs/linux-2.6/xfs_trace.h fs/xfs/xfs_log.c+20 -310 replies
46/102xfs: share code for grant head availability checksfs/xfs/xfs_log.c+60 -730 replies
47/102xfs: split and cleanup xfs_log_reservefs/xfs/linux-2.6/xfs_trace.h fs/xfs/xfs_log.c fs/xfs/xfs_log.h +2 more+151 -1700 replies
48/102xfs: only take the ILOCK in xfs_reclaim_inode()fs/xfs/linux-2.6/xfs_sync.c fs/xfs/xfs_iget.c+13 -60 replies
49/102xfs: use per-filesystem I/O completion workqueuesfs/xfs/linux-2.6/xfs_aops.c fs/xfs/linux-2.6/xfs_aops.h fs/xfs/linux-2.6/xfs_buf.c +2 more+67 -490 replies
50/102xfs: do not require an ioend for new EOF calculationfs/xfs/linux-2.6/xfs_aops.c fs/xfs/xfs_inode.h+18 -200 replies
54/102xfs: make xfs_inode_item_size idempotentfs/xfs/xfs_inode_item.c+83 -1350 replies
55/102xfs: split in-core and on-disk inode log item fieldsfs/xfs/xfs_dfrag.c fs/xfs/xfs_inode.c fs/xfs/xfs_inode_item.c +2 more+92 -920 replies
56/102xfs: reimplement fdatasync supportfs/xfs/linux-2.6/xfs_file.c fs/xfs/linux-2.6/xfs_super.c fs/xfs/xfs_inode_item.c +1 more+18 -50 replies
57/102xfs: fallback to vmalloc for large buffers in xfs_attrmulti_attr_getfs/xfs/linux-2.6/xfs_ioctl.c+10 -40 replies
58/102xfs: fallback to vmalloc for large buffers in xfs_getbmapfs/xfs/xfs_bmap.c+10 -30 replies
59/102xfs: fix deadlock in xfs_rtfree_extentfs/xfs/xfs_bmap.c fs/xfs/xfs_rtalloc.c+13 -50 replies
60/102xfs: Fix open flag handling in open_by_handle codefs/xfs/linux-2.6/xfs_ioctl.c+5 -90 replies
61/102xfs: introduce an allocation workqueuefs/xfs/linux-2.6/xfs_super.c fs/xfs/xfs_alloc.c fs/xfs/xfs_alloc.h+54 -10 replies
62/102xfs: trace xfs_name strings correctlyfs/xfs/linux-2.6/xfs_trace.h+13 -30 replies
63/102xfs: Account log unmount transaction correctlyfs/xfs/xfs_log.c+2 -10 replies
64/102xfs: fix fstrim offset calculationsfs/xfs/linux-2.6/xfs_discard.c fs/xfs/xfs_alloc.c fs/xfs/xfs_alloc.h+46 -240 replies
65/102xfs: add lots of attribute trace pointsfs/xfs/linux-2.6/xfs_trace.h fs/xfs/xfs_attr.c fs/xfs/xfs_attr_leaf.c +1 more+144 -60 replies
66/102xfs: don't fill statvfs with project quota for a directoryfs/xfs/linux-2.6/xfs_super.c+1 -10 replies
67/102xfs: Ensure inode reclaim can run during quotacheckfs/xfs/linux-2.6/xfs_super.c fs/xfs/linux-2.6/xfs_sync.c+18 -180 replies
68/102xfs: avoid taking the ilock unnessecarily in xfs_qm_dqattachfs/xfs/quota/xfs_qm.c+21 -50 replies
69/102xfs: reduce ilock hold times in xfs_file_aio_write_checksfs/xfs/linux-2.6/xfs_file.c+9 -140 replies
70/102xfs: reduce ilock hold times in xfs_setattr_sizefs/xfs/xfs_vnodeops.c+6 -70 replies
71/102xfs: push the ilock into xfs_zero_eoffs/xfs/linux-2.6/xfs_file.c fs/xfs/xfs_vnodeops.c+64 -1020 replies
72/102xfs: use shared ilock mode for direct IO writes by defaultfs/xfs/linux-2.6/xfs_aops.c fs/xfs/xfs_iomap.c+45 -300 replies
73/102xfs: punch all delalloc blocks beyond EOF on write failure.fs/xfs/linux-2.6/xfs_aops.c+1 -10 replies
74/102xfs: using GFP_NOFS for blkdev_issue_flushfs/xfs/linux-2.6/xfs_super.c+1 -10 replies
75/102xfs: page type check in writeback only checks last bufferfs/xfs/linux-2.6/xfs_aops.c+6 -60 replies
76/102xfs: punch new delalloc blocks out of failed writes insidefs/xfs/linux-2.6/xfs_aops.c+127 -460 replies
77/102xfs: prevent needless mount warning causing test failuresfs/xfs/xfs_log_recover.c+4 -00 replies
78/102xfs: don't assert on delalloc regions beyond EOFfs/xfs/xfs_bmap.c+14 -20 replies
79/102xfs: limit specualtive delalloc to maxioffsetfs/xfs/xfs_iomap.c+9 -00 replies
80/102xfs: Use preallocation for inodes with extsz hintsfs/xfs/linux-2.6/xfs_aops.c+1 -10 replies
81/102xfs: fix buffer lookup race on allocation failurefs/xfs/linux-2.6/xfs_buf.c+9 -70 replies
82/102xfs: check for buffer errors before waitingfs/xfs/linux-2.6/xfs_buf.c fs/xfs/linux-2.6/xfs_buf.h fs/xfs/xfs_log_recover.c+14 -140 replies
83/102xfs: fix incorrect b_offset initialisationfs/xfs/linux-2.6/xfs_buf.c+0 -10 replies
84/102xfs: use kmem_zone_zalloc for buffersfs/xfs/linux-2.6/xfs_buf.c+1 -20 replies
85/102xfs: use iolock on XFS_IOC_ALLOCSP callsfs/xfs/xfs_vnodeops.c+18 -30 replies
86/102xfs: Properly exclude IO type flags from buffer flagsfs/xfs/linux-2.6/xfs_buf.c+4 -20 replies
87/102xfs: flush outstanding buffers on log mount failurefs/xfs/xfs_mount.c+6 -20 replies
88/102xfs: protect xfs_sync_worker with s_umount semaphorefs/xfs/linux-2.6/xfs_sync.c+17 -140 replies
89/102xfs: fix memory reclaim deadlock on agi bufferfs/xfs/xfs_iget.c+3 -20 replies
90/102xfs: add trace points for log forcesfs/xfs/linux-2.6/xfs_trace.h fs/xfs/xfs_log.c+18 -00 replies
91/102xfs: switch to proper __bitwise type for KM_... flagsfs/xfs/linux-2.6/kmem.c fs/xfs/linux-2.6/kmem.h fs/xfs/xfs_log.c +3 more+20 -190 replies
92/102xfs: xfs_vm_writepage clear iomap_valid whenfs/xfs/linux-2.6/xfs_aops.c+8 -30 replies
93/102xfs: fix debug_object WARN at xfs_alloc_vextent()fs/xfs/xfs_alloc.c+1 -10 replies
94/102xfs: m_maxioffset is redundantfs/xfs/linux-2.6/xfs_aops.c fs/xfs/xfs_iomap.c fs/xfs/xfs_mount.c +1 more+9 -120 replies
95/102xfs: make largest supported offset less shoutyfs/xfs/linux-2.6/xfs_file.c fs/xfs/quota/xfs_qm.c fs/xfs/xfs_bmap.c +4 more+13 -170 replies
96/102xfs: kill copy and paste segment checks in xfs_file_aio_readfs/xfs/linux-2.6/xfs_file.c+3 -140 replies
97/102xfs: fix allocbt cursor leak in xfs_alloc_ag_vextent_nearfs/xfs/xfs_alloc.c+1 -00 replies
98/102xfs: shutdown xfs_sync_worker before the logfs/xfs/linux-2.6/xfs_sync.c fs/xfs/xfs_log.c+17 -170 replies
99/102xfs: really fix the cursor leak in xfs_alloc_ag_vextent_nearfs/xfs/xfs_alloc.c+2 -20 replies
100/102xfs: don't defer metadata allocation to the workqueuefs/xfs/xfs_alloc.c+12 -30 replies
101/102xfs: prevent recursion in xfs_buf_iorequestfs/xfs/linux-2.6/xfs_buf.c+1 -10 replies
102/102xfs: handle EOF correctly in xfs_vm_writepagefs/xfs/linux-2.6/xfs_aops.c+17 -20 replies

Reviews trailers per patch

79 of 99 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDave ChinnerChristoph HellwigAlex ElderChandra SeetharamanMark TinguelyEric SandeenMel GormanMike Snitzer
SeriesR-b
1/102
2/102R-b
3/102R-b
4/102R-b
5/102R-b
6/102R-b
7/102
8/102
9/102
10/102R-b
11/102
12/102R-b
13/102R-b
14/102
15/102R-b
16/102R-b
17/102R-b
18/102R-b
19/102R-b
20/102R-b R-b R-b
21/102R-b
22/102R-b
23/102R-b T-b
24/102R-b
25/102R-b
26/102R-b
27/102R-b
28/102R-b R-b
29/102R-b
30/102R-b
31/102R-b
32/102R-b
33/102R-b
34/102R-b
35/102
36/102R-b R-b
37/102R-b R-b
38/102R-b R-b
39/102R-b R-b
40/102R-b R-b
41/102R-b R-b
42/102R-b R-b
43/102R-b R-b
44/102R-b R-b
45/102R-b R-b
46/102R-b R-b
47/102R-b R-b
48/102R-b R-b
49/102R-b R-b
50/102R-b R-b
54/102R-b R-b
55/102R-b R-b
56/102R-b R-b
57/102R-b R-b
58/102R-b R-b
59/102R-b
60/102R-b R-b
61/102R-b
62/102
63/102R-b
64/102R-b
65/102
66/102
67/102R-b
68/102R-b R-b
69/102R-b R-b
70/102
71/102R-b R-b
72/102R-b R-b
73/102R-b
74/102R-b
75/102R-b R-b
76/102
77/102
78/102
79/102
80/102R-b
81/102R-b
82/102R-b R-b
83/102R-b R-b
84/102R-b R-b
85/102R-b R-b
86/102R-b R-b
87/102R-b R-b
88/102R-b
89/102R-b
90/102R-b
91/102
92/102R-b
93/102
94/102R-b
95/102R-b
96/102
97/102R-b
98/102R-b R-b
99/102T-b
100/102T-b
101/102R-b
102/102R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 8 reviewers.

Read the v1 thread

Cover letter [RFC, PATCH 0/102]: xfs: 3.0.x stable kernel update

This series is a backport of all the major bug fixes in the current TOT kernel to the current 3.0.x stable tree.

I won't make any secret of this - the fixes and supporting patches have been selected as a result of the issues reported in the current RHEL XFS codebase which currently is 2 commits short of the 3.0 code base. With that said, it doesn't take a brain surgeon to work out the motivations behind this work and eventual destination of the patch set. ;)

There's no guarantee I have caught every single bug fix that has been made since 3.0, but I've tried to grab all the bug fix commits as indicated by the commit headers (hence the importance of good one line bug summaries).

Over the past couple of weeks of testing and refining, I've had only three significant problems arise from QA and load testing:

1) An unreproducable log space hang
2) An unmount panic due to buffers not being cleaned up before tearing down the perag tree
3) A forced shutdown panic in block_invalidatepage() via xfs_aops_discard_page()

It's entirely possible that #1 was due to the CIL space hang we still haven't got to the bottom of, so i'm not not greatly concerned by that. #2 implies I haven't quite backported the shutdown ordering fixes correctly (or I missed one), so I have a bit more work to do there. And for #3 - I've never seen that before and I haven't been able to reproduce it, so I really don't know what potential cause or impact it has.

I've been beating on the series with xfstests, dbench, fsmark, postmark, compilebench and a few other load scripts that I've got, and it seems fairly resilient. Hence, it's time to give the series wider testing and review to flush out any remaining issues.

For all the folks that run 3.0.x stable kernels, I'd appreciate it if you could give this a whirl on your test systems to see if there are any obvious, glaring problems that show up under your particular workloads. This woul dbe of great benefit to me before I submit the series to the stable kernel gurus - I'd prefer it there's more substantial testing than "i've done what I can" when sending them the series.

For all the XFS developers that have copious amounts of free time available, I'd appreciate an eye run over the patch list to see if there's any potential bug fixes that I missed or have made glaring errors in backporting. Some of the fixes are dependent on cleanups I haven't included, so some of the patches are a bit different to what is in mainline (e.g. anything that touches setattr). Most important to look at is probably the inode i_size changes and the logging of all metadata changes.

Enjoy!

Cheers,

Dave.

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs