Andreas Gruenbacher 9e1a9ecd13 gfs2: Don't withdraw under a spin lock
In two places, the gfs2_io_error_bh macro is called while holding the
sd_ail_lock spin lock.  This isn't allowed because gfs2_io_error_bh
withdraws the filesystem, which can sleep because it issues a uevent.
To fix that, add a gfs2_io_error_bh_wd macro that does withdraw the
filesystem and change gfs2_io_error_bh to not withdraw the filesystem.
In those places where the new gfs2_io_error_bh is used, withdraw the
filesystem after releasing sd_ail_lock.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Reviewed-by: Andrew Price <anprice@redhat.com>
2018-06-21 07:39:44 -05:00
..
2016-05-12 22:28:05 -04:00
2018-06-05 13:24:20 -07:00
2018-06-04 07:56:51 -05:00
2016-06-27 09:47:09 -05:00
2018-03-08 09:26:20 -07:00
2016-06-27 09:47:08 -05:00
2018-06-04 07:56:51 -05:00
2018-04-12 09:41:19 -07:00
2018-06-04 07:56:51 -05:00
2018-02-01 11:25:31 -07:00
2018-06-21 07:39:44 -05:00
2018-06-21 07:39:44 -05:00
2018-01-23 07:38:53 -07:00
2018-04-16 09:25:21 -07:00
2018-03-08 09:26:20 -07:00
2017-04-19 08:25:43 -04:00
2018-03-28 01:39:02 -04:00
2018-06-21 07:39:44 -05:00
2018-06-21 07:39:44 -05:00
2015-12-06 21:25:17 -05:00