summaryrefslogtreecommitdiffstats
path: root/net/mac80211/led.h
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2010-12-20 02:03:17 +0100
committerDave Chinner <david@fromorbit.com>2010-12-20 02:03:17 +0100
commit3013683253ad04f67d8cfaa25be708353686b90a (patch)
treeeadc35b70c0169096a7dbaf4eb9966be7630db04 /net/mac80211/led.h
parentxfs: consume iodone callback items on buffers as they are processed (diff)
downloadlinux-3013683253ad04f67d8cfaa25be708353686b90a.tar.xz
linux-3013683253ad04f67d8cfaa25be708353686b90a.zip
xfs: remove all the inodes on a buffer from the AIL in bulk
When inode buffer IO completes, usually all of the inodes are removed from the AIL. This involves processing them one at a time and taking the AIL lock once for every inode. When all CPUs are processing inode IO completions, this causes excessive amount sof contention on the AIL lock. Instead, change the way we process inode IO completion in the buffer IO done callback. Allow the inode IO done callback to walk the list of IO done callbacks and pull all the inodes off the buffer in one go and then process them as a batch. Once all the inodes for removal are collected, take the AIL lock once and do a bulk removal operation to minimise traffic on the AIL lock. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'net/mac80211/led.h')
0 files changed, 0 insertions, 0 deletions