]> git.baikalelectronics.ru Git - kernel.git/commit
FS-Cache: Fix operation handling
authorAkshat Aranya <aranya@nec-labs.com>
Fri, 14 Jan 2011 16:00:47 +0000 (16:00 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 14 Jan 2011 17:23:36 +0000 (09:23 -0800)
commit585851efb0cdca413f99f2c4d6ce43329a44fb25
tree1ae3a8d6b19528277f5a622705b633a43f5218b8
parent65443139a8c5a6646e0ed4ae85f18ac5878fc4c2
FS-Cache: Fix operation handling

fscache_submit_exclusive_op() adds an operation to the pending list if
other operations are pending.  Fix the check for pending ops as n_ops
must be greater than 0 at the point it is checked as it is incremented
immediately before under lock.

Signed-off-by: Akshat Aranya <aranya@nec-labs.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fscache/operation.c