ceph: fix a few problems in ceph_dir_*_complete()
Get series with b4
b4 am 1324576249.3957.105.camel@doinkVersions newest first
- v1 Latest3 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | ceph: check for null dentry in ceph_dir_set_complete()fs/ | +7 | 0 replies | |
| 2/3 | ceph: take inode lock when finding an inode aliasfs/ | +15 | 0 replies | |
| 3/3 | ceph: take a reference to the dentry in d_find_any_alias()fs/ | +25 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] ceph: fix a few problems in ceph_dir_*_complete()
This series fixes a possible null pointer dereference in ceph_dir_set_complete().
It also fixes the ceph-private implementation of __d_find_any_alias() so it takes a reference to the returned dentry. In addition, getting that reference to the dentry requires the Linux inode lock, so ensure that is taken by (duplicating and) using the locking form of that function, d_find_any_alias().
-Alex