Kiyoshi Ueda f88fb98118 dm: dec_pending needs locking to save error value
Multiple instances of dec_pending() can run concurrently so a lock is
needed when it saves the first error code.

I have never experienced actual problem without locking and just found
this during code inspection while implementing the barrier support
patch for request-based dm.

This patch adds the locking.
I've done compile, boot and basic I/O testings.

Cc: stable@kernel.org
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: Alasdair G Kergon <agk@redhat.com>
2009-10-16 23:18:15 +01:00
..
2009-10-15 00:47:13 -04:00
2009-09-22 07:17:27 -07:00
2009-09-24 07:21:05 -07:00
2009-09-23 07:39:43 -07:00
2009-10-15 00:47:13 -04:00
2009-10-14 12:43:54 +02:00
2009-09-23 11:35:41 -04:00
2009-09-23 22:26:32 +09:30
2009-10-04 22:53:41 +02:00
2009-10-04 15:05:10 -07:00
2009-09-23 10:07:49 -07:00