]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
dm: remove unused flush_all
authorKiyoshi Ueda <k-ueda@ct.jp.nec.com>
Tue, 21 Oct 2008 16:45:07 +0000 (17:45 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Tue, 21 Oct 2008 16:45:07 +0000 (17:45 +0100)
commitf431d9666fd6e69fbaf305cebc7278d1428950c2
treeebd0e7c5deb3e6782f0de657223d071bc11b1983
parent1f965b19437017cea6d3f3f46acdc5acae5fd011
dm: remove unused flush_all

This patch removes the DM_WQ_FLUSH_ALL state that is unnecessary.

The dm_queue_flush(md, DM_WQ_FLUSH_ALL, NULL) in dm_suspend()
is never invoked because:
  - 'goto flush_and_out' is the same as 'goto out' because
    the 'goto flush_and_out' is called only when '!noflush'
  - If r is non-zero, then the code above will invoke 'goto out'
    and skip this code.

No functional change.

Signed-off-by: Kiyoshi Ueda <k-ueda@ct.jp.nec.com>
Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Signed-off-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm.c