]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
iscsi: Support unmapped I/O requests in the default initiator.
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 10 Mar 2022 23:50:26 +0000 (15:50 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 10 Mar 2022 23:50:26 +0000 (15:50 -0800)
commit530e725d8e9ba118ace2f75f010657a4fe4222a6
treec55aa5edebb08e434e100e025e5199bb4228eef4
parent7aab9c14a462e0871394bbc4e276affb79c8d173
iscsi: Support unmapped I/O requests in the default initiator.

- Add icl_pdu_append_bio and icl_pdu_get_bio methods.

- When ICL_NOCOPY is used to append data from an unmapped I/O request
  to a PDU, construct unmapped mbufs from the relevant pages backing
  the struct bio.

- Use m_apply with a helper to compute crc32 digests on mbuf chains
  to handle unmapped mbufs.  Since m_apply requires PMAP_HAS_DMAP
  for unmapped mbufs, only support unmapped requests when PMAP_HAS_DMAP
  is true.

Reviewed by: mav
Differential Revision: https://reviews.freebsd.org/D34406
sys/dev/iscsi/icl_soft.c