Konstantin Belousov f3215a60fd Fix a race with the vnode reclamation in the aio_qphysio(). Obtain
the thread reference on the vp->v_rdev and use the returned struct
cdev *dev instead of using vp->v_rdev.  Call dev_strategy_csw()
instead of dev_strategy(), since we now own the reference.

Since the csw was already calculated, test d_flags to avoid mapping
the buffer if the driver supports unmapped requests [*].

Suggested by:	kan [*]
Reviewed by:	kan (previous version)
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
2013-03-27 11:47:52 +00:00
..
2013-03-21 23:02:19 +00:00
2012-11-01 04:07:08 +00:00
2013-03-22 20:44:16 +00:00
2013-03-26 14:08:14 +00:00
2013-02-21 12:52:18 +00:00
2013-02-28 13:46:03 +00:00