Author: markj
Date: Mon Jun 24 19:19:37 2019
New Revision: 349334
URL: https://svnweb.freebsd.org/changeset/base/349334

Log:
  Remove a lingering use of splbio().
  
  The buffer must be locked by the caller.  No functional change
  intended.
  
  Reviewed by:  kib
  MFC after:    1 week
  Sponsored by: The FreeBSD Foundation

Modified:
  head/sys/fs/smbfs/smbfs_io.c

Modified: head/sys/fs/smbfs/smbfs_io.c
==============================================================================
--- head/sys/fs/smbfs/smbfs_io.c        Mon Jun 24 17:25:14 2019        
(r349333)
+++ head/sys/fs/smbfs/smbfs_io.c        Mon Jun 24 19:19:37 2019        
(r349334)
@@ -375,9 +375,6 @@ smbfs_doio(struct vnode *vp, struct buf *bp, struct uc
                 */
                if (error == EINTR
                    || (!error && (bp->b_flags & B_NEEDCOMMIT))) {
-                       int s;
-
-                       s = splbio();
                        bp->b_flags &= ~(B_INVAL|B_NOCACHE);
                        if ((bp->b_flags & B_ASYNC) == 0)
                            bp->b_flags |= B_EINTR;
@@ -387,7 +384,6 @@ smbfs_doio(struct vnode *vp, struct buf *bp, struct uc
                        }
                        if ((bp->b_flags & B_ASYNC) == 0)
                            bp->b_flags |= B_EINTR;
-                       splx(s);
                } else {
                        if (error) {
                                bp->b_ioflags |= BIO_ERROR;
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to