| To: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 03/10] xfs: allow assigning the tail lsn with the AIL lock held |
| From: | Dave Chinner <david@xxxxxxxxxxxxx> |
| Date: | Fri, 13 Apr 2012 19:42:27 +1000 |
| Cc: | xfs@xxxxxxxxxxx |
| In-reply-to: | <20120327164644.597749707@xxxxxxxxxxxxxxxxxxxxxx> |
| References: | <20120327164400.967415009@xxxxxxxxxxxxxxxxxxxxxx> <20120327164644.597749707@xxxxxxxxxxxxxxxxxxxxxx> |
| User-agent: | Mutt/1.5.21 (2010-09-15) |
On Tue, Mar 27, 2012 at 12:44:03PM -0400, Christoph Hellwig wrote: > Provide a variant of xlog_assign_tail_lsn that has the AIL lock already > held. By doing so we do an additional atomic_read + atomic_set under > the lock, which comes down to two instructions. > > Switch xfs_trans_ail_update_bulk and xfs_trans_ail_delete_bulk to the > new version to reduce the number of lock roundtrips, and prepare for > a new addition that would require a third lock roundtrip in > xfs_trans_ail_delete_bulk. This addition is also the reason for > slightly rearranging the conditionals and relying on xfs_log_space_wake > for checking that the filesystem has been shut down internally. > > Signed-off-by: Christoph Hellwig <hch@xxxxxx> Looks good, and will be slightly more efficient, too. Reviewed-by: Dave Chinner <dchinner@xxxxxxxxxx> -- Dave Chinner david@xxxxxxxxxxxxx |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 02/10] xfs: remove log item from AIL in xfs_iflush after a shutdown, Dave Chinner |
|---|---|
| Next by Date: | [PATCH 2/5] xfstests 233: fix user fsgqa access to fsstress, tmarek |
| Previous by Thread: | Re: [PATCH 02/10] xfs: remove log item from AIL in xfs_iflush after a shutdown, Dave Chinner |
| Next by Thread: | [PATCH 1/5] xfstests 062: fix support for ext4 and SELinux, tmarek |
| Indexes: | [Date] [Thread] [Top] [All Lists] |