dm: tidy dm_suspend
authorMilan Broz <mbroz@redhat.com>
Fri, 8 Feb 2008 02:10:25 +0000 (02:10 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 8 Feb 2008 02:10:25 +0000 (02:10 +0000)
commit73d410c0137f63c6597e9763c81e5f4d015e9940
treed76251d96254217b6935dee0acca676476a7a45e
parent6d6f10df890df8be69edd4db32dc8ce09f311bb8
dm: tidy dm_suspend

Tidy dm_suspend function

 - change return value logic in dm_suspend
 - use atomic_read only once.
 - move DMF_BLOCK_IO clearing into one place

Signed-off-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm.c