ZhangXiaoxu
33ea5aaa87
nfs: Fix nfsi->nrequests count error on nfs_inode_remove_request
When xfstests testing, there are some WARNING as below:
WARNING: CPU: 0 PID: 6235 at fs/nfs/inode.c:122 nfs_clear_inode+0x9c/0xd8
Modules linked in:
CPU: 0 PID: 6235 Comm: umount.nfs
Hardware name: linux,dummy-virt (DT)
pstate: 60000005 (nZCv daif -PAN -UAO)
pc : nfs_clear_inode+0x9c/0xd8
lr : nfs_evict_inode+0x60/0x78
sp : fffffc000f68fc00
x29: fffffc000f68fc00 x28: fffffe00c53155c0
x27: fffffe00c5315000 x26: fffffc0009a63748
x25: fffffc000f68fd18 x24: fffffc000bfaaf40
x23: fffffc000936d3c0 x22: fffffe00c4ff5e20
x21: fffffc000bfaaf40 x20: fffffe00c4ff5d10
x19: fffffc000c056000 x18: 000000000000003c
x17: 0000000000000000 x16: 0000000000000000
x15: 0000000000000040 x14: 0000000000000228
x13: fffffc000c3a2000 x12: 0000000000000045
x11: 0000000000000000 x10: 0000000000000000
x9 : 0000000000000000 x8 : 0000000000000000
x7 : 0000000000000000 x6 : fffffc00084b027c
x5 : fffffc0009a64000 x4 : fffffe00c0e77400
x3 : fffffc000c0563a8 x2 : fffffffffffffffb
x1 : 000000000000764e x0 : 0000000000000001
Call trace:
nfs_clear_inode+0x9c/0xd8
nfs_evict_inode+0x60/0x78
evict+0x108/0x380
dispose_list+0x70/0xa0
evict_inodes+0x194/0x210
generic_shutdown_super+0xb0/0x220
nfs_kill_super+0x40/0x88
deactivate_locked_super+0xb4/0x120
deactivate_super+0x144/0x160
cleanup_mnt+0x98/0x148
__cleanup_mnt+0x38/0x50
task_work_run+0x114/0x160
do_notify_resume+0x2f8/0x308
work_pending+0x8/0x14
The nrequest should be increased/decreased only if PG_INODE_REF flag
was setted.
But in the nfs_inode_remove_request function, it maybe decrease when
no PG_INODE_REF flag, this maybe lead nrequests count error.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: ZhangXiaoxu <zhangxiaoxu5@huawei.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
2019-10-02 08:52:17 -04:00
..
2019-05-21 10:50:46 +02:00
2019-09-24 16:28:38 -04:00
2019-08-26 15:31:29 -04:00
2017-11-17 14:18:00 -08:00
2017-11-17 14:18:00 -08:00
2019-07-09 10:30:25 -04:00
2019-04-24 09:46:34 -04:00
2019-04-24 09:46:35 -04:00
2018-08-09 12:56:38 -04:00
2019-07-06 14:54:53 -04:00
2019-08-04 22:35:40 -04:00
2019-08-04 22:35:40 -04:00
2019-09-26 12:20:14 -07:00
2019-08-19 08:56:04 -04:00
2019-06-27 23:02:12 +01:00
2017-11-02 11:10:55 +01:00
2018-06-04 12:07:07 -04:00
2019-05-21 10:50:45 +02:00
2019-05-24 17:27:11 +02:00
2019-08-04 22:35:41 -04:00
2019-08-04 22:35:41 -04:00
2019-05-30 11:26:32 -07:00
2019-09-02 13:10:19 -04:00
2019-09-26 12:20:14 -07:00
2019-02-20 15:14:21 -05:00
2017-11-02 11:10:55 +01:00
2019-05-21 10:50:46 +02:00
2019-07-06 14:54:49 -04:00
2019-04-26 16:00:48 -04:00
2019-05-21 10:50:45 +02:00
2019-07-06 14:54:49 -04:00
2019-05-21 10:50:45 +02:00
2019-07-09 10:30:25 -04:00
2017-11-02 11:10:55 +01:00
2019-02-20 17:33:55 -05:00
2019-07-06 14:54:50 -04:00
2019-09-20 15:15:24 -04:00
2019-05-21 10:50:45 +02:00
2019-07-09 10:30:25 -04:00
2019-09-20 15:56:19 -04:00
2019-08-04 22:35:40 -04:00
2019-08-19 08:56:04 -04:00
2017-11-02 11:10:55 +01:00
2019-07-10 18:43:43 -07:00
2015-04-23 15:16:14 -04:00
2019-02-20 15:14:21 -05:00
2019-09-20 16:00:14 -04:00
2018-12-19 13:52:46 -05:00
2019-05-21 10:50:45 +02:00
2019-03-02 16:25:26 -05:00
2019-09-20 15:56:19 -04:00
2019-05-21 10:50:45 +02:00
2018-01-18 15:10:47 -05:00
2019-07-18 15:50:28 -04:00
2019-07-18 15:50:28 -04:00
2019-08-20 09:30:50 -04:00
2019-03-01 16:20:16 -05:00
2019-04-11 15:23:48 -04:00
2019-03-01 16:20:16 -05:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-02-13 12:03:21 -05:00
2019-08-30 21:29:32 -04:00
2019-08-19 08:56:04 -04:00
2019-03-01 22:37:38 -05:00
2019-08-26 15:31:29 -04:00
2019-09-20 15:48:35 -04:00
2019-09-20 15:48:35 -04:00
2019-08-27 10:24:56 -04:00
2019-08-26 15:31:29 -04:00
2019-09-26 12:20:14 -07:00
2019-05-09 16:26:57 -04:00
2017-11-02 11:10:55 +01:00
2019-07-06 14:54:49 -04:00
2019-07-06 14:54:49 -04:00
2019-06-20 14:47:44 +02:00
2019-10-02 08:52:17 -04:00