]> git.baikalelectronics.ru Git - kernel.git/commit
dm: split dm_suspend io_lock hold into two
authorMilan Broz <mbroz@redhat.com>
Fri, 8 Feb 2008 02:10:27 +0000 (02:10 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 8 Feb 2008 02:10:27 +0000 (02:10 +0000)
commit29ac31c4e0068bff64f7dd1ff0967b066c9db5f3
treea0b5c1935077c1bf40db1945c5f30e8d8a9a47a2
parentb032f74e281023874a2ec25061e35b138db3951e
dm: split dm_suspend io_lock hold into two

Change io_locking to allow processing flush in separate thread.

Because we have DMF_BLOCK_IO already set, any possible
new ios are queued in dm_requests now.

In the case of interrupting previous wait there can be more
ios queued (we unlocked io_lock for a while) but this is safe.

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