]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: fix open file counting on snapped inodes when mds returns no caps
authorSage Weil <sage@newdream.net>
Fri, 7 May 2010 18:26:34 +0000 (11:26 -0700)
committerSage Weil <sage@newdream.net>
Tue, 11 May 2010 16:53:55 +0000 (09:53 -0700)
commit7c494f572752fcd8596df1305da1beb3294f6b19
tree725f4031c083323b63664f03b4d0d7ce9c183b21
parentb936dbb300edca3a08765dbe2c5845389331a6d0
ceph: fix open file counting on snapped inodes when mds returns no caps

It's possible the MDS will not issue caps on a snapped inode, in which case
an open request may not __ceph_get_fmode(), botching the open file
counting.  (This is actually a server bug, but the client shouldn't BUG out
in this case.)

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/inode.c