]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Don't try to make md arrays dirty if that is not meaningful.
authorNeil Brown <neilb@notabene.brown>
Fri, 27 Jun 2008 22:31:27 +0000 (08:31 +1000)
committerNeil Brown <neilb@notabene.brown>
Fri, 27 Jun 2008 22:31:27 +0000 (08:31 +1000)
commit1a0fd497733bd029a7d5f2e5c69b1dff715b7792
tree30f7d07f1ae8cdbebc757d3dfb3fe81e0406e2b5
parentf48ed538386cb41559282d989354e8f5d442d71c
Don't try to make md arrays dirty if that is not meaningful.

Arrays personalities such as 'raid0' and 'linear' have no redundancy,
and so marking them as 'clean' or 'dirty' is not meaningful.
So always allow write requests without requiring a superblock update.

Such arrays types are detected by ->sync_request being NULL.  If it is
not possible to send a sync request we don't need a 'dirty' flag because
all a dirty flag does is trigger some sync_requests.

Signed-off-by: Neil Brown <neilb@suse.de>
drivers/md/md.c