Commit 927bfc5
NFSD: change nfsd_create()/nfsd_symlink() to unlock directory before returning.
nfsd_create() usually returns with the directory still locked.
nfsd_symlink() usually returns with it unlocked. This is clumsy.
Until recently nfsd_create() needed to keep the directory locked until
ACLs and security label had been set. These are now set inside
nfsd_create() (in nfsd_setattr()) so this need is gone.
So change nfsd_create() and nfsd_symlink() to always unlock, and remove
any fh_unlock() calls that follow calls to these functions.
Signed-off-by: NeilBrown <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>1 parent c0cbe70 commit 927bfc5
3 files changed
+21
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
391 | | - | |
392 | 391 | | |
393 | 392 | | |
394 | 393 | | |
| |||
469 | 468 | | |
470 | 469 | | |
471 | 470 | | |
472 | | - | |
473 | 471 | | |
474 | 472 | | |
475 | 473 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
823 | 823 | | |
824 | 824 | | |
825 | 825 | | |
826 | | - | |
827 | | - | |
828 | 826 | | |
829 | 827 | | |
830 | 828 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1379 | 1379 | | |
1380 | 1380 | | |
1381 | 1381 | | |
1382 | | - | |
1383 | | - | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
1384 | 1386 | | |
1385 | 1387 | | |
1386 | 1388 | | |
1387 | 1389 | | |
1388 | 1390 | | |
1389 | 1391 | | |
1390 | 1392 | | |
1391 | | - | |
1392 | | - | |
1393 | | - | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
1394 | 1399 | | |
1395 | 1400 | | |
1396 | 1401 | | |
| |||
1467 | 1472 | | |
1468 | 1473 | | |
1469 | 1474 | | |
1470 | | - | |
1471 | | - | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
1472 | 1479 | | |
1473 | 1480 | | |
1474 | 1481 | | |
1475 | 1482 | | |
1476 | | - | |
1477 | | - | |
1478 | | - | |
1479 | | - | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
1480 | 1488 | | |
1481 | 1489 | | |
1482 | 1490 | | |
| |||
1485 | 1493 | | |
1486 | 1494 | | |
1487 | 1495 | | |
1488 | | - | |
1489 | | - | |
1490 | 1496 | | |
1491 | 1497 | | |
| 1498 | + | |
| 1499 | + | |
1492 | 1500 | | |
1493 | 1501 | | |
1494 | | - | |
1495 | | - | |
1496 | | - | |
1497 | | - | |
1498 | 1502 | | |
1499 | 1503 | | |
1500 | 1504 | | |
| |||
0 commit comments