Repository navigation
Commit 893e456
ceph: don't clear I_NEW until inode metadata is fully populated
Currently, we could have an open-by-handle (or NFS server) call
into the filesystem and start working with an inode before it's
properly filled out.
Don't clear I_NEW until we have filled out the inode, and discard it
properly if that fails. Note that we occasionally take an extra
reference to the inode to ensure that we don't put the last reference in
discard_new_inode, but rather leave it for ceph_async_iput.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>1 parent c4853e9 commit 893e456
1 file changed
Lines changed: 23 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | 61 | | |
64 | 62 | | |
65 | 63 | | |
| |||
88 | 86 | | |
89 | 87 | | |
90 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
91 | 93 | | |
92 | 94 | | |
93 | 95 | | |
| |||
1304 | 1306 | | |
1305 | 1307 | | |
1306 | 1308 | | |
1307 | | - | |
1308 | 1309 | | |
1309 | 1310 | | |
1310 | 1311 | | |
| |||
1314 | 1315 | | |
1315 | 1316 | | |
1316 | 1317 | | |
| 1318 | + | |
| 1319 | + | |
1317 | 1320 | | |
1318 | 1321 | | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
1319 | 1325 | | |
1320 | 1326 | | |
1321 | 1327 | | |
| |||
1499 | 1505 | | |
1500 | 1506 | | |
1501 | 1507 | | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
1502 | 1514 | | |
| 1515 | + | |
1503 | 1516 | | |
1504 | 1517 | | |
1505 | 1518 | | |
| |||
1701 | 1714 | | |
1702 | 1715 | | |
1703 | 1716 | | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
1704 | 1721 | | |
1705 | 1722 | | |
1706 | 1723 | | |
1707 | 1724 | | |
1708 | 1725 | | |
1709 | 1726 | | |
| 1727 | + | |
| 1728 | + | |
1710 | 1729 | | |
1711 | 1730 | | |
1712 | 1731 | | |
| |||
0 commit comments