]> err.no Git - linux-2.6/commit
[PATCH] dm snapshot: add workqueue
authorAlasdair G Kergon <agk@redhat.com>
Tue, 3 Oct 2006 08:15:30 +0000 (01:15 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 3 Oct 2006 15:04:14 +0000 (08:04 -0700)
commitca3a931fd33b841cbcc5932f8eac7c43e0909242
treebc8aa7ace1a5e528cbfabc01b17a2016c55bc448
parent9d493fa8c943ed4ec6e42b7ebfd8f0b7657d54f8
[PATCH] dm snapshot: add workqueue

Add a workqueue so that I/O can be queued up to be flushed from a separate
thread (e.g.  if local interrupts are disabled).

A new per-snapshot spinlock pe_lock is introduced to protect queued_bios.

Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/dm-snap.c
drivers/md/dm-snap.h