]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nfs/blocklayout: SCSI layout trace points for reservation key reg/unreg
authorChuck Lever <chuck.lever@oracle.com>
Tue, 25 Jun 2024 20:02:08 +0000 (16:02 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 8 Jul 2024 17:47:27 +0000 (13:47 -0400)
commit7d09d6bb66709f33e85b9fc78b25b0055f4b9d7c
treedc497ef6843c8f4bf5fffc2d9b3e09cdf81e6d4a
parent450b4b3b2f742d5b3fce51e8f808ff1ed2fe9f89
nfs/blocklayout: SCSI layout trace points for reservation key reg/unreg

An administrator cannot take action on these messages, but the
reported errors might be helpful for troubleshooting. Transition
them to trace points so these events appear in the trace log and
can be easily lined up with other traced NFS client operations.

Examples:

   append_writer-6147  [000]    80.247393: bl_pr_key_reg:        dev=8,0 (sda) key=0x6675bfcf59112e98
   append_writer-6147  [000]    80.247842: bl_pr_key_unreg:      dev=8,0 (sda) key=0x6675bfcf59112e98

     umount.nfs4-6172  [002]    84.950409: bl_pr_key_unreg_err:  dev=8,0 (sda) key=0x6675bfcf59112e98 status=RESERVATION_CONFLICT

Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/blocklayout/dev.c
fs/nfs/nfs4trace.c
fs/nfs/nfs4trace.h