Repository navigation
Commit 09802fd
Jeff Layton
lockd: rip out deferred lock handling from testlock codepath
As Kinglong points out, the nlm_block->b_fl field is no longer used at
all. Also, vfs_test_lock in the generic locking code will only return
FILE_LOCK_DEFERRED if FL_SLEEP is set, and it isn't here.
The only other place that returns that value is the DLM lock code, but
it only does that in dlm_posix_lock, never in dlm_posix_get.
Remove all of the deferred locking code from the testlock codepath
since it doesn't appear to ever be used anyway.
I do have a small concern that this might cause a behavior change in the
case where you have a block already sitting on the list when the
testlock request comes in, but that looks like it doesn't really work
properly anyway. I think it's best to just pass that down to
vfs_test_lock and let the filesystem report that instead of trying to
infer what's going on with the lock by looking at an existing block.
Cc: cluster-devel@redhat.com
Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Reviewed-by: Kinglong Mee <kinglongmee@gmail.com>1 parent aef9583 commit 09802fd
2 files changed
Lines changed: 6 additions & 50 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
249 | 248 | | |
250 | 249 | | |
251 | 250 | | |
| |||
295 | 294 | | |
296 | 295 | | |
297 | 296 | | |
298 | | - | |
299 | 297 | | |
300 | 298 | | |
301 | 299 | | |
| |||
508 | 506 | | |
509 | 507 | | |
510 | 508 | | |
511 | | - | |
512 | 509 | | |
513 | 510 | | |
514 | 511 | | |
| |||
519 | 516 | | |
520 | 517 | | |
521 | 518 | | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
558 | | - | |
559 | | - | |
560 | 519 | | |
561 | 520 | | |
562 | 521 | | |
563 | 522 | | |
| 523 | + | |
564 | 524 | | |
565 | | - | |
566 | | - | |
567 | | - | |
568 | | - | |
569 | 525 | | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
570 | 530 | | |
571 | 531 | | |
572 | 532 | | |
| 533 | + | |
573 | 534 | | |
574 | 535 | | |
575 | 536 | | |
576 | 537 | | |
577 | 538 | | |
578 | | - | |
579 | 539 | | |
580 | 540 | | |
581 | 541 | | |
| |||
589 | 549 | | |
590 | 550 | | |
591 | 551 | | |
592 | | - | |
593 | | - | |
594 | 552 | | |
595 | 553 | | |
596 | 554 | | |
| |||
661 | 619 | | |
662 | 620 | | |
663 | 621 | | |
664 | | - | |
665 | 622 | | |
666 | 623 | | |
667 | 624 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
182 | 181 | | |
183 | 182 | | |
184 | 183 | | |
| |||
0 commit comments