Commit 47e3536
exfat: fix missing shutdown check
xfstests generic/730 test failed because after deleting the device
that still had dirty data, the file could still be read without
returning an error. The reason is the missing shutdown check in
->read_iter.
I also noticed that shutdown checks were missing from ->write_iter,
->splice_read, and ->mmap. This commit adds shutdown checks to all
of them.
Fixes: f761fcd ("exfat: Implement sops->shutdown and ioctl")
Signed-off-by: Yuezhang Mo <[email protected]>
Signed-off-by: Namjae Jeon <[email protected]>1 parent b052230 commit 47e3536
1 file changed
+27
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
582 | 582 | | |
583 | 583 | | |
584 | 584 | | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
585 | 588 | | |
586 | 589 | | |
587 | 590 | | |
| |||
635 | 638 | | |
636 | 639 | | |
637 | 640 | | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
638 | 651 | | |
639 | 652 | | |
640 | 653 | | |
| |||
672 | 685 | | |
673 | 686 | | |
674 | 687 | | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
675 | 691 | | |
676 | 692 | | |
677 | 693 | | |
678 | 694 | | |
679 | 695 | | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
680 | 705 | | |
681 | 706 | | |
682 | | - | |
| 707 | + | |
683 | 708 | | |
684 | 709 | | |
685 | 710 | | |
686 | 711 | | |
687 | 712 | | |
688 | 713 | | |
689 | 714 | | |
690 | | - | |
| 715 | + | |
691 | 716 | | |
692 | 717 | | |
693 | 718 | | |
| |||
0 commit comments