Repository navigation
Commit c55a01d
Miklos Szeredi
fuse: avoid scheduling while atomic
As reported by Richard Sharpe, an attempt to use fuse_notify_inval_entry()
triggers complains about scheduling while atomic:
BUG: scheduling while atomic: fuse.hf/13976/0x10000001
This happens because fuse_notify_inval_entry() attempts to allocate memory
with GFP_KERNEL, holding "struct fuse_copy_state" mapped by kmap_atomic().
Introduced by commit 58bda1d "fuse/dev: use atomic maps"
Fix by moving the map/unmap to just cover the actual memcpy operation.
Original patch from Maxim Patlasov <mpatlasov@parallels.com>
Reported-by: Richard Sharpe <realrichardsharpe@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Cc: <stable@vger.kernel.org> # v3.15+1 parent 233a01f commit c55a01d
1 file changed
Lines changed: 23 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
646 | | - | |
647 | | - | |
648 | 646 | | |
| 647 | + | |
649 | 648 | | |
650 | 649 | | |
651 | 650 | | |
| |||
666 | 665 | | |
667 | 666 | | |
668 | 667 | | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | | - | |
| 668 | + | |
673 | 669 | | |
674 | | - | |
675 | 670 | | |
676 | | - | |
677 | | - | |
678 | | - | |
| 671 | + | |
679 | 672 | | |
680 | 673 | | |
681 | 674 | | |
682 | 675 | | |
683 | 676 | | |
684 | | - | |
685 | 677 | | |
| 678 | + | |
686 | 679 | | |
687 | 680 | | |
688 | 681 | | |
| |||
691 | 684 | | |
692 | 685 | | |
693 | 686 | | |
694 | | - | |
| 687 | + | |
695 | 688 | | |
696 | 689 | | |
697 | 690 | | |
| |||
706 | 699 | | |
707 | 700 | | |
708 | 701 | | |
709 | | - | |
| 702 | + | |
| 703 | + | |
710 | 704 | | |
711 | | - | |
712 | 705 | | |
713 | 706 | | |
714 | 707 | | |
715 | | - | |
716 | | - | |
717 | 708 | | |
718 | 709 | | |
719 | 710 | | |
| |||
726 | 717 | | |
727 | 718 | | |
728 | 719 | | |
729 | | - | |
730 | | - | |
| 720 | + | |
| 721 | + | |
731 | 722 | | |
732 | 723 | | |
733 | 724 | | |
| |||
740 | 731 | | |
741 | 732 | | |
742 | 733 | | |
743 | | - | |
| 734 | + | |
744 | 735 | | |
745 | 736 | | |
746 | 737 | | |
747 | | - | |
748 | | - | |
749 | | - | |
750 | | - | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
751 | 741 | | |
752 | 742 | | |
753 | 743 | | |
| |||
760 | 750 | | |
761 | 751 | | |
762 | 752 | | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
763 | 756 | | |
764 | | - | |
| 757 | + | |
765 | 758 | | |
766 | | - | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
767 | 762 | | |
768 | 763 | | |
769 | 764 | | |
770 | 765 | | |
771 | | - | |
| 766 | + | |
772 | 767 | | |
773 | 768 | | |
774 | 769 | | |
| |||
874 | 869 | | |
875 | 870 | | |
876 | 871 | | |
877 | | - | |
878 | | - | |
| 872 | + | |
| 873 | + | |
879 | 874 | | |
880 | 875 | | |
881 | 876 | | |
| |||
0 commit comments