summaryrefslogtreecommitdiff
path: root/fs/ceph/osdmap.c
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-03-01 17:57:54 (GMT)
committerSage Weil <sage@newdream.net>2010-03-01 23:28:00 (GMT)
commit195d3ce2cc9a8ec69827f6369c41b269345b9988 (patch)
tree9ef91489d379ac612895b6ab3118535969aba152 /fs/ceph/osdmap.c
parent6f863e712d4114e8ae2f02de64ebeac0546ebaa0 (diff)
downloadlinux-fsl-qoriq-195d3ce2cc9a8ec69827f6369c41b269345b9988.tar.xz
ceph: return EBADF if waiting for caps on closed file
Verify the file is actually open for the given caps when we are waiting for caps. This ensures we will wake up and return EBADF if another thread closes the file out from under us. Note that EBADF is also the correct return code from write(2) when called on a file handle opened for reading (although the vfs should catch that). Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/osdmap.c')
0 files changed, 0 insertions, 0 deletions