Kent Overstreet
4f024f3797
block: Abstract out bvec iterator
...
Immutable biovecs are going to require an explicit iterator. To
implement immutable bvecs, a later patch is going to add a bi_bvec_done
member to this struct; for now, this patch effectively just renames
things.
Signed-off-by: Kent Overstreet <[email protected] >
Cc: Jens Axboe <[email protected] >
Cc: Geert Uytterhoeven <[email protected] >
Cc: Benjamin Herrenschmidt <[email protected] >
Cc: Paul Mackerras <[email protected] >
Cc: "Ed L. Cashin" <[email protected] >
Cc: Nick Piggin <[email protected] >
Cc: Lars Ellenberg <[email protected] >
Cc: Jiri Kosina <[email protected] >
Cc: Matthew Wilcox <[email protected] >
Cc: Geoff Levand <[email protected] >
Cc: Yehuda Sadeh <[email protected] >
Cc: Sage Weil <[email protected] >
Cc: Alex Elder <[email protected] >
Cc: [email protected]
Cc: Joshua Morris <[email protected] >
Cc: Philip Kelleher <[email protected] >
Cc: Rusty Russell <[email protected] >
Cc: "Michael S. Tsirkin" <[email protected] >
Cc: Konrad Rzeszutek Wilk <[email protected] >
Cc: Jeremy Fitzhardinge <[email protected] >
Cc: Neil Brown <[email protected] >
Cc: Alasdair Kergon <[email protected] >
Cc: Mike Snitzer <[email protected] >
Cc: [email protected]
Cc: Martin Schwidefsky <[email protected] >
Cc: Heiko Carstens <[email protected] >
Cc: [email protected]
Cc: Boaz Harrosh <[email protected] >
Cc: Benny Halevy <[email protected] >
Cc: "James E.J. Bottomley" <[email protected] >
Cc: Greg Kroah-Hartman <[email protected] >
Cc: "Nicholas A. Bellinger" <[email protected] >
Cc: Alexander Viro <[email protected] >
Cc: Chris Mason <[email protected] >
Cc: "Theodore Ts'o" <[email protected] >
Cc: Andreas Dilger <[email protected] >
Cc: Jaegeuk Kim <[email protected] >
Cc: Steven Whitehouse <[email protected] >
Cc: Dave Kleikamp <[email protected] >
Cc: Joern Engel <[email protected] >
Cc: Prasad Joshi <[email protected] >
Cc: Trond Myklebust <[email protected] >
Cc: KONISHI Ryusuke <[email protected] >
Cc: Mark Fasheh <[email protected] >
Cc: Joel Becker <[email protected] >
Cc: Ben Myers <[email protected] >
Cc: [email protected]
Cc: Steven Rostedt <[email protected] >
Cc: Frederic Weisbecker <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: Len Brown <[email protected] >
Cc: Pavel Machek <[email protected] >
Cc: "Rafael J. Wysocki" <[email protected] >
Cc: Herton Ronaldo Krzesinski <[email protected] >
Cc: Ben Hutchings <[email protected] >
Cc: Andrew Morton <[email protected] >
Cc: Guo Chao <[email protected] >
Cc: Tejun Heo <[email protected] >
Cc: Asai Thambi S P <[email protected] >
Cc: Selvan Mani <[email protected] >
Cc: Sam Bradshaw <[email protected] >
Cc: Wei Yongjun <[email protected] >
Cc: "Roger Pau Monné" <[email protected] >
Cc: Jan Beulich <[email protected] >
Cc: Stefano Stabellini <[email protected] >
Cc: Ian Campbell <[email protected] >
Cc: Sebastian Ott <[email protected] >
Cc: Christian Borntraeger <[email protected] >
Cc: Minchan Kim <[email protected] >
Cc: Jiang Liu <[email protected] >
Cc: Nitin Gupta <[email protected] >
Cc: Jerome Marchand <[email protected] >
Cc: Joe Perches <[email protected] >
Cc: Peng Tao <[email protected] >
Cc: Andy Adamson <[email protected] >
Cc: fanchaoting <[email protected] >
Cc: Jie Liu <[email protected] >
Cc: Sunil Mushran <[email protected] >
Cc: "Martin K. Petersen" <[email protected] >
Cc: Namjae Jeon <[email protected] >
Cc: Pankaj Kumar <[email protected] >
Cc: Dan Magenheimer <[email protected] >
Cc: Mel Gorman <[email protected] >6
2013-11-23 22:33:47 -08:00
Kent Overstreet
c4d951ddb6
bcache: Fix sysfs splat on shutdown with flash only devs
...
Whoops.
Signed-off-by: Kent Overstreet <[email protected] >
2013-11-10 21:56:41 -08:00
Kent Overstreet
48a915a87f
bcache: Better full stripe scanning
...
The old scanning-by-stripe code burned too much CPU, this should be
better.
Signed-off-by: Kent Overstreet <[email protected] >
2013-11-10 21:56:41 -08:00
Kent Overstreet
5e6926daac
bcache: Convert writeback to a kthread
...
This simplifies the writeback flow control quite a bit - previously, it
was conceptually two coroutines, refill_dirty() and read_dirty(). This
makes the code quite a bit more straightforward.
Signed-off-by: Kent Overstreet <[email protected] >
2013-11-10 21:56:05 -08:00
Kent Overstreet
2d679fc756
bcache: Stripe size isn't necessarily a power of two
...
Originally I got this right... except that the divides didn't use
do_div(), which broke 32 bit kernels. When I went to fix that, I forgot
that the raid stripe size usually isn't a power of two... doh
Signed-off-by: Kent Overstreet <[email protected] >
2013-11-10 21:55:55 -08:00
Kent Overstreet
72c270612b
bcache: Write out full stripes
...
Now that we're tracking dirty data per stripe, we can add two
optimizations for raid5/6:
* If a stripe is already dirty, force writes to that stripe to
writeback mode - to help build up full stripes of dirty data
* When flushing dirty data, preferentially write out full stripes first
if there are any.
Signed-off-by: Kent Overstreet <[email protected] >
2013-06-26 21:58:04 -07:00
Kent Overstreet
279afbad4e
bcache: Track dirty data by stripe
...
To make background writeback aware of raid5/6 stripes, we first need to
track the amount of dirty data within each stripe - we do this by
breaking up the existing sectors_dirty into per stripe atomic_ts
Signed-off-by: Kent Overstreet <[email protected] >
2013-06-26 21:57:23 -07:00